3v4l.org

run code in 300+ PHP versions simultaneously
<?php $break_has = strstr("test\n", "\n", true); $break_missing = strstr("test", "\n", true) echo '[', $break_has, '] - '; echo '[', $break_missing, ']';
Output for 5.4.0 - 5.4.10
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/UYkYg on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.20
Parse error: syntax error, unexpected T_ECHO in /in/UYkYg on line 4
Process exited with code 255.

preferences:
174.05 ms | 1386 KiB | 39 Q