3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $location = 'Boston, MA' $comma = strpos($location,','); $city = substr($location,0,$comma); $state = substr($location,$comma); echo $city; echo $state; ?>
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.4.11
Parse error: syntax error, unexpected '$comma' (T_VARIABLE) in /in/2pieU on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.21
Parse error: syntax error, unexpected T_VARIABLE in /in/2pieU on line 4
Process exited with code 255.