3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 0; switch( $a ) { case 'test': echo 'A'; break; case 0: echo 'B'; break; default: echo 'C'; break; } var_dump(0 == 'test')
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected end of file in /in/SF6Ka on line 17
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/SF6Ka on line 17
Process exited with code 255.