ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
//code here
Reference : stackOverflow
# only localhost !
php -S localhost:8080
# for external access
php -S 0.0.0.0:8080
# or
php -S 0:8080
Caption :
-S <addr>:<port>
: Run with built-in web server
cd /usr/share/phpmyadmin/
# or clone the repo
# then start a php web server
php -S localhost:8080