3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url='http://www.w3resource.com/php-exercises/php-basic-exercises.php'; $url= parse_url($url); echo 'scheme: '.$url['scheme'].'</br>'; echo 'host: '.$url['host'].'</br>'; echo 'Path: '.$url['path'].'</br>'; ?>
Output for 4.3.0 - 7.3.0rc3
scheme: http</br>host: www.w3resource.com</br>Path: /php-exercises/php-basic-exercises.php</br>