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'].'nl2br'; echo 'Host : '.$url['host'].'nl2br'; echo 'Path : '.$url['path'].'nl2br'; ?>
based on cY5LY
Output for 4.3.0 - 7.1.0
Scheme : httpnl2brHost : www.w3resource.comnl2brPath : /php-exercises/php-basic-exercises.phpnl2br