3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "ab" echo "".substr(stristr("cAbf",$s),0,count($s));
Output for 5.4.18
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/tmlU7 on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/4AcAT on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_ECHO in /in/4AcAT on line 4
Process exited with code 255.

preferences:
178.43 ms | 1395 KiB | 54 Q