3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $urlParts = (parse_url('http://213.34.94.142:8080/WebService_Live/service.php?wsdl')); $url = $urlParts['scheme'] . '://' . $urlParts['host'] . ':' . $urlParts['port'] . $urlParts['path'] . '?' . $urlParts['query']; var_dump($urlParts);
based on GoJt9
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
array(5) { ["scheme"]=> string(4) "http" ["host"]=> string(13) "213.34.94.142" ["port"]=> int(8080) ["path"]=> string(28) "/WebService_Live/service.php" ["query"]=> string(4) "wsdl" }