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);

preferences:
28.12 ms | 405 KiB | 5 Q