3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $path = '/test/path/controller'; $upper_path = substr($path, 0, $lastslash) . strtoupper(substr($path, $lastslash, 1)) . strtolower(substr($path, $lastslash + 1));
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: lastslash in /in/PmPHO on line 4 Notice: Undefined variable: lastslash in /in/PmPHO on line 4 Notice: Undefined variable: lastslash in /in/PmPHO on line 4
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: lastslash in /in/PmPHO on line 4 Notice: Undefined variable: lastslash in /in/PmPHO on line 4 Notice: Undefined variable: lastslash in /in/PmPHO on line 4