3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "Hello world; This is a nice day; after"; $str = explode(";",$string); echo substr($string, 0, strrpos($string, ";"));
Output for 4.3.0 - 7.1.0
Hello world; This is a nice day