3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export( preg_match( '/(?<0>[a-z]+) (?<1>\d+)/in', 'Foo 411', $m ) ? $m : [] );
Output for 7.4.0 - 7.4.32, 8.0.1 - 8.0.24, 8.1.0 - 8.1.11
Warning: preg_match(): Unknown modifier 'n' in /in/97lST on line 7 array ( )

preferences:
38.79 ms | 409 KiB | 5 Q