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['scheme'].'<p>'; echo 'host: '.$url['host'].'<p>'; echo 'Path: '.$url['path'].'<p>'; ?>
Output for 4.3.0 - 7.1.0
scheme: http<p>host: www.w3resource.com<p>Path: /php-exercises/php-basic-exercises.php<p>