3v4l.org

run code in 300+ PHP versions simultaneously
<?php $limit = 10000000; $string = 'a'; for ( $i = 0; $i <= $limit; $i++ ) { $string .= 'a'; } echo strlen($string)."\n"; $str2=preg_replace('#(?<name>.)*#', '', $string); echo 'done';

preferences:
58.88 ms | 402 KiB | 5 Q