3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "njnj.com"; echo preg_match('/^.+[^.]\.[^.]+$/',$a);

preferences:
22.92 ms | 404 KiB | 5 Q