3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $directorio = '/tmp/13072017_1315_38/'; $pos = strrpos($directorio, "/", -1); echo "\n"; $length = strlen($directorio); echo substr($directorio, $pos, $length) ?>
based on QBuMo
Output for 5.0.0 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.2.6
/
Output for 4.3.0 - 4.4.9
Warning: Wrong parameter count for strrpos() in /in/8A1Iu on line 3 /tmp/13072017_1315_38/