To run the example at local machine, you could do the following steps. $ php -S localhost:12388 where 12388 is an arbitrary unused port. Visit http://localhost:12388/demo.php with your browser.