3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "ae - bcd"; if (($pos = strpos($string, ' - ')) > 0) { $string = substr($string, $pos + 3); } var_dump($string);
Output for 4.3.0 - 7.1.0
string(3) "bcd"