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']; echo 'Host: ' . $url['host']; echo 'Path: ' . $url['path']; ?>
Output for 4.3.0 - 7.1.0
Scheme:httpHost: www.w3resource.comPath: /php-exercises/php-basic-exercises.php