3v4l.org

run code in 300+ PHP versions simultaneously
<?php $proxy = "http://XDGC463:LaposteAphelion!@surf-sccc.pasi.log.intra.laposte.fr:8080"; $regexProxy = '/(?P<scheme>https?):\/\/((?P<username>[^:]+)(:(?P<password>.+))?@)?(?P<url>(?P<host>[a-z0-9\.-]+)(:(?P<port>\d+))?)/'; preg_match($regexProxy, $proxy, $matches); var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
array(16) { [0]=> string(72) "http://XDGC463:LaposteAphelion!@surf-sccc.pasi.log.intra.laposte.fr:8080" ["scheme"]=> string(4) "http" [1]=> string(4) "http" [2]=> string(25) "XDGC463:LaposteAphelion!@" ["username"]=> string(7) "XDGC463" [3]=> string(7) "XDGC463" [4]=> string(17) ":LaposteAphelion!" ["password"]=> string(16) "LaposteAphelion!" [5]=> string(16) "LaposteAphelion!" ["url"]=> string(40) "surf-sccc.pasi.log.intra.laposte.fr:8080" [6]=> string(40) "surf-sccc.pasi.log.intra.laposte.fr:8080" ["host"]=> string(35) "surf-sccc.pasi.log.intra.laposte.fr" [7]=> string(35) "surf-sccc.pasi.log.intra.laposte.fr" [8]=> string(5) ":8080" ["port"]=> string(4) "8080" [9]=> string(4) "8080" }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
27.73 ms | 407 KiB | 5 Q