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'];
based on Zc2Ps
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Scheme : httphost :www.w3resource.com
Output for hhvm-3.10.0

Process exited with code 153.