3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $urls = array("/category/category.html", "http://google.com"); foreach($urls as $url) { $res = parse_url($url); if(!isset($res['host'])) { echo "$url is a relative URL\n"; } else { echo "$url is a absolute URL\n"; } }
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
/category/category.html is a relative URL http://google.com is a absolute URL
Output for hhvm-3.10.0

Process exited with code 153.