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 '<br'>; echo $state; ?>
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.4.11
Parse error: syntax error, unexpected ';' in /in/DG6Yb on line 8
Process exited with code 255.