3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function hello world($greeting){ $w = 'World'; echo "$greeting,$w!<br>\n"; } hello world('Howdy'); // Howdy, World! $command = "hello world"; $command('Hi'); // Hi, World!
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
Howdy,World!<br> Hi,World!<br>
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/2leca on line 9
Process exited with code 255.