3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $youtube = "http://dai.ly/x3d0z58"; $parse = parse_url($youtube, PHP_URL_PATH); var_dump($parse);
based on HnMLk
Output for 5.3.19 - 7.2.0
string(8) "/x3d0z58"