3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url("/http://asd.com/some/url"));
Output for 5.3.6 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(1) { ["path"]=> string(24) "/http://asd.com/some/url" }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.3 - 5.3.5
bool(false)
Output for 5.2.0 - 5.3.2
Warning: parse_url(/http://asd.com/some/url): Unable to parse URL in /in/E9i0h on line 3 bool(false)
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.1.6
Warning: parse_url(/http://asd.com/some/url): Unable to parse url in /in/E9i0h on line 3 bool(false)
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.4
array(3) { ["scheme"]=> string(5) "/http" ["host"]=> string(7) "asd.com" ["path"]=> string(9) "/some/url" }