3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "a".str_repeat("\xCC\x8A", 100000); var_dump( 1 === preg_match_all('/\X/u', $str), 1 === preg_match_all('/(?>\PM\pM*)/u', $str) );
based on hbQXu
Output for 5.4.0 - 7.2.0
bool(true) bool(true)
Output for 4.3.4 - 5.3.29
Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/s1i2T on line 4 Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/s1i2T on line 5 bool(false) bool(false)
Output for 4.3.3
Warning: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 1 in /in/s1i2T on line 4 Warning: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in /in/s1i2T on line 5 bool(false) bool(false)
Output for 4.3.0 - 4.3.2
Warning: Wrong parameter count for preg_match_all() in /in/s1i2T on line 4 Warning: Wrong parameter count for preg_match_all() in /in/s1i2T on line 5 bool(false) bool(false)