3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $files['beam/email_header.jpg'] = "/u01/foo/bar/baz/_base/beam/email_header.jpg"; echo substr($files['beam/email_header.jpg'],strrpos($files['beam/email_header.jpg'],'/',((strlen('/beam/email_header.jpg')*-1)-1)));
based on OloGb
Output for 5.0.0 - 7.3.0rc4
/_base/beam/email_header.jpg
Output for 4.3.0 - 4.4.9
Warning: Wrong parameter count for strrpos() in /in/VUqlv on line 3 /u01/foo/bar/baz/_base/beam/email_header.jpg