3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.google.co.m'; print_R(preg_match('/[^.]+\.[^.]+$/', $url, $match)); print_R($match);

preferences:
66.15 ms | 402 KiB | 5 Q