3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array_fill(0,10000, "ahoj"); $count = 0; $length = 0; foreach($array as $item) { $count += 1; $length += strlen($item); } echo "count: $count, length: $length";
Output for 4.3.0 - 7.1.0
count: 10000, length: 40000