3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a=1; $b=0; switch($a) { default: $b += 1; break; default: $b += 3; break; default: $b += 4; break; default: $b += 5; default: $b += 2; } echo $b; //output would be 2
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.6.28
2
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/qt6hP on line 20
Process exited with code 255.