3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('/(^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}(,{1}[\w-\.]+@([\w-]+\.)+[\w-]{2,4})*$)|^$/', "foo");

preferences:
28.13 ms | 407 KiB | 5 Q