3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'http://google.com?omg=wtf'; echo preg_replace('/(http|https):\\/\\/(google.com/is', 'https://$2', $foo);

preferences:
52.43 ms | 402 KiB | 5 Q