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 Mb9TG
Output for 5.6.38 - 7.3.0rc3
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/G6JIq on line 6
Process exited with code 255.