3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $toto = "http://mercure-ws1.vente.francetelecom.fr:9010/ProjetMercure/servlet/accesauxapplis/.jsp?task=GererAccesAuxApplications&ctrl_choix_appli=NEPT"; $titi = parse_url($toto); echo var_dump($titi);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(5) { ["scheme"]=> string(4) "http" ["host"]=> string(34) "mercure-ws1.vente.francetelecom.fr" ["port"]=> int(9010) ["path"]=> string(42) "/ProjetMercure/servlet/accesauxapplis/.jsp" ["query"]=> string(52) "task=GererAccesAuxApplications&ctrl_choix_appli=NEPT" }