3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = 'http://www.example.com/'; $rel = 'path/to/somewhere#foo?baz=quix'; var_dump(parse_url($y));
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: y in /in/3hnKi on line 6 array(1) { ["path"]=> string(0) "" }
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: y in /in/3hnKi on line 6 array(1) { ["path"]=> string(0) "" }