3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.18, 5.4.0 - 5.4.8
Parse error: syntax error, unexpected '}' in h5YNq on line 12
Process exited with code 255.

preferences:
176.95 ms | 1395 KiB | 35 Q