3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('/(^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}(,{1}[\w-\.]+@([\w-]+\.)+[\w-]{2,4})*$)|^$/', "foo");
Output for 7.3.13 - 7.3.33, 7.4.0 - 7.4.29, 8.0.0 - 8.0.19, 8.1.0 - 8.1.6
Warning: preg_match(): Compilation failed: invalid range in character class at offset 5 in /in/lW4dQ on line 3

preferences:
33.99 ms | 409 KiB | 5 Q