3v4l.org

run code in 200+ 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"; } else { echo "$url is a absolute URL"; } }
Output for 5.3.0 - 5.4.22
Parse error: syntax error, unexpected ')', expecting ']' in /in/9JpIr on line 7
Process exited with code 255.