3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url("file://test.com/home/1/.git"));
Output for 4.3.0 - 4.3.1, 4.3.3 - 7.1.0
array(3) { ["scheme"]=> string(4) "file" ["host"]=> string(8) "test.com" ["path"]=> string(12) "/home/1/.git" }
Output for 4.3.2
array(2) { ["scheme"]=> string(4) "file" ["path"]=> string(20) "test.com/home/1/.git" }