3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class x { public function __construct() { $strHaystack='test'; $strNeedle='t'; $numPos=strpos($strHaystack,$strNeedle); print $numpos } } var_dump(new x);
Output for 5.3.0 - 5.4.8
Parse error: syntax error, unexpected '}' in /in/4N7E2 on line 12
Process exited with code 255.