3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = 'http://www.w3resource.com/php-exercises/php-basic-exercises.php'; $url=parse_url($url); print_r($url); ?> - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#sthash.fAYpy1nA.dpuf
based on qX5Fd
Output for 4.3.0 - 7.1.0
Array ( [scheme] => http [host] => www.w3resource.com [path] => /php-exercises/php-basic-exercises.php ) - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#sthash.fAYpy1nA.dpuf