3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pattern = '/a/'; $limit = 8435; $string = 'a'; for ( $i = 0; $i <= $limit; $i++ ) { $string .= 'a'; //echo strlen($string) . "\n"; //echo mb_strlen($string); } echo strlen($string)."\n"; $str2=preg_replace('#(\w)*#', '', $string); echo $str2."\n"; echo 'done';
based on 6hpCc
Output for 5.3.23 - 5.4.45, 7.0.0 - 7.2.0
8437 done
Output for 5.3.18 - 5.3.22, 5.5.24 - 5.6.21
8437
Process exited with code 139.