3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data=array(); for($c=0; $c<32; $c++) $data[$c]=array(1, 2, 3); $filter=array(1, 2, 3); for($kc=0; $kc<25600; $kc++) { $cm=memory_get_usage(true); $pm=memory_get_peak_usage(true); echo "<b>loop $kc: current_memory: $cm, peak_memory: $pm...</b>" . PHP_EOL; flush(); foreach($data as $entry) foreach($filter as $pattern) continue 2; }

Abusive script

This script was stopped while abusing our resources