3v4l.org

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