3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url('http://example.com/\/example.com/' . $url));
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: url in /in/Skdkq on line 3 array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(11) "example.com" ["path"]=> string(15) "/\/example.com/" }
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: url in /in/Skdkq on line 3 array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(11) "example.com" ["path"]=> string(15) "/\/example.com/" }