3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( parse_url('tel:5551'), parse_url('tel:0124567') );
based on m64W5
Output for 4.4.3 - 4.4.9, 5.1.3 - 5.6.30, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.2.0
array(2) { ["host"]=> string(3) "tel" ["port"]=> int(5551) } array(2) { ["scheme"]=> string(3) "tel" ["path"]=> string(7) "0124567" }
Output for 4.3.0 - 4.4.2, 5.0.0 - 5.1.2
array(2) { ["host"]=> string(3) "tel" ["port"]=> int(5551) } array(1) { ["path"]=> string(11) "tel:0124567" }