3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = '<p>Lorem ipsum dolor sitamet consec tetuer adipiscing elit praesent ves tibulum moles tie lacusenean non ummy hendrer maur hasellus porta usce suscipit varius mi.</p> <p><!-- pagebreak --></p> <p>Lorem ipsum next.</p>' $string = substr($string, 0, strpos('<!-- pagebreak -->', $string)); var_dump($string);
Output for 5.4.0 - 5.4.21
Parse error: syntax error, unexpected '$string' (T_VARIABLE) in /in/1hUZk on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_VARIABLE in /in/1hUZk on line 5
Process exited with code 255.