3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'blah blah http://localhost:80/somedir/somedir2/i-want.this: blah'; preg_match('(http.*/(.*?):.*$)', $s, $m); var_dump($m); preg_match('(http.*?/(.*?):.*$)', $s, $m); var_dump($m);

preferences:
28.39 ms | 402 KiB | 5 Q