3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump( parse_url( 'http://ozh.org/text/' ) ); var_dump( parse_url( 'http://ozh.org./text/' ) );
based on qp8rv
Output for 4.3.0 - 7.1.0
array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(7) "ozh.org" ["path"]=> string(6) "/text/" } array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(8) "ozh.org." ["path"]=> string(6) "/text/" }