3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://download.geofabrik.de/openstreetmap/europe/andorra.osm.pbf'; $file = substr($url, strrchr($url,'/'), 1); echo $file;

preferences:
33.11 ms | 402 KiB | 5 Q