3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $max_n=100010; $n=99900; $tmp_str=str_repeat('b',$n); $go=true; while (($go)&&($n<=$max_n)) { $n++; $tmp_str.='b'; $str='a'.$tmp_str.'a'; $go=preg_match('/a.*?a/sim', $str); if (!$go) { echo 'error on length '.strlen($str); die; } } echo ' ok';
Output for 4.3.0 - 5.1.6, 5.3.7 - 7.1.0
ok
Output for 5.2.0 - 5.3.6
error on length 100000