3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = '//www.example.com/path?googleguy=googley&abc=456'; // Prior to 5.4.7 this would show the path as "//www.example.com/path" var_dump(parse_url($url)); ?>
Output for 5.4.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { ["host"]=> string(15) "www.example.com" ["path"]=> string(5) "/path" ["query"]=> string(25) "googleguy=googley&abc=456" }
Output for 4.3.0 - 5.4.6
array(2) { ["path"]=> string(22) "//www.example.com/path" ["query"]=> string(25) "googleguy=googley&abc=456" }