3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $limit = 8345; $string = 'a'; for ( $i = 0; $i <= $limit; $i++ ) { $string .= 'a'; } echo strlen($string)."\n"; $str2=preg_replace('#(?<name>.)*#', '', $string); echo 'done';
based on cJ4Pa
Output for 5.3.23 - 5.4.45, 7.0.0 - 7.2.0
8347 done
Output for 5.3.18 - 5.3.22, 5.5.24 - 5.6.28
8347
Process exited with code 139.