3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 /in/IkAOD on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.14
Parse error: syntax error, unexpected T_STRING in /in/IkAOD on line 4
Process exited with code 255.