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); echo 'Scheme : '.$url['http'].'</br>'; echo 'Host : '.$url['www.w3resource.com'].'</br>'; echo 'Path : '.$url['/php-exercises/php-basic-exercises.php'].'</br>'; ?>
Output for 5.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined index: http in /in/duSQZ on line 4 Scheme : </br> Notice: Undefined index: www.w3resource.com in /in/duSQZ on line 5 Host : </br> Notice: Undefined index: /php-exercises/php-basic-exercises.php in /in/duSQZ on line 6 Path : </br>
Output for 4.3.0 - 5.2.17
Notice: Undefined index: http in /in/duSQZ on line 4 Scheme : </br> Notice: Undefined index: www.w3resource.com in /in/duSQZ on line 5 Host : </br> Notice: Undefined index: /php-exercises/php-basic-exercises.php in /in/duSQZ on line 6 Path : </br>