3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = "https://example.com/1.mp3"; $parsed = parse_url($url); var_dump($parsed); echo $parsed["path"];
based on VuVrj
Output for 4.3.0 - 7.2.0
array(3) { ["scheme"]=> string(5) "https" ["host"]=> string(11) "example.com" ["path"]=> string(6) "/1.mp3" } /1.mp3