3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cache = []; $cachedCount = 0; for($call = 1; $call <= 2050; $call++) { if (++$cachedCount > 1024) { $cache = []; $cachedCount = 0; } $cache[$call] = $call; // hidden calls : 100th to 1000th if($call == 100) echo '...'."\n"; if($call >= 100 && $call <= 1000) continue; // hidden calls : 1100th to 2000th if($call == 1100) echo '...'."\n"; if($call >= 1100 && $call <= 2000) continue; echo '$call='.$call.' $cachedCount='.$cachedCount.' count($cache)='.count($cache)."\n"; }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
168.1 ms | 2497 KiB | 10 Q