3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $file_name = '\\foo\\bar\\baz'; $file_name = 'baz'; $ext = substr($file_name, strrpos($file_name,'\\')+1); echo $ext;
based on G6JIq
Output for 5.6.38 - 7.3.0rc3
az