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 4.3.0 - 7.1.0
string(0) ""