3v4l.org

run code in 300+ PHP versions simultaneously
<?php $part = stristr("my home is my castle","my",true); $part2 = stristr("my home is my castle","my); echo "This is my $part\n"; echo "That is $part2\n"; ?>
Output for 5.4.0 - 5.4.4
Parse error: syntax error, unexpected 'This' (T_STRING) in sHPVR on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.14
Parse error: syntax error, unexpected T_STRING in sHPVR on line 4
Process exited with code 255.

preferences:
167.61 ms | 1395 KiB | 27 Q