3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $reverse = TRUE; $str = 'test/ezifh'; $f = $reverse ? 'strrpos' : 'strpos'; if (($pos = $f($str, $separator)) !== FALSE) { $str = substr($str, $pos + 1); } var_dump($str);
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: separator in /in/4I7Bh on line 5 string(10) "test/ezifh"
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: separator in /in/4I7Bh on line 5 string(10) "test/ezifh"
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: separator in /in/4I7Bh on line 5 bool(false)