3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match('123', 345));
Output for 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Warning: preg_match(): Delimiter must not be alphanumeric, backslash, or NUL in /in/LMGuI on line 3 bool(false)
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.33, 7.4.4 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27
Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /in/LMGuI on line 3 bool(false)

preferences:
114.91 ms | 402 KiB | 131 Q