3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'class1 class2 class3'; $test = strpos($str,'class1); print_r($test);
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected ''class1);' (T_ENCAPSED_AND_WHITESPACE) in /in/GgkgC on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /in/GgkgC on line 5
Process exited with code 255.