3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo basename("/afasd/asdfa/asdf/asdf.jpg"); echo "<br>"; echo basename("http://werwer.werwer.afasd/asdfa/asdf/asdf.jpg"); echo "<br>"; echo basename("\kjhjkh\jkhkjh\jhkjhjh\asdf.jpg");
based on TqGv5
Output for 5.3.19 - 7.2.0
asdf.jpg<br>asdf.jpg<br>\kjhjkh\jkhkjh\jhkjhjh\asdf.jpg