3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = 'http://download.geofabrik.de/openstreetmap/europe/andorra.osm.pbf'; $file = substr(strrchr($url,'/'), 1); $name = strstr($file, '.', true); echo $file; echo $name;
Output for 5.3.0 - 7.1.0
andorra.osm.pbfandorra
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for strstr() in /in/dDuG0 on line 4 andorra.osm.pbf