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"; }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.20.0190.00520.27
8.5.10.0140.00616.74
8.5.00.0130.00920.14
8.4.160.0150.00924.18
8.4.150.0030.00014.05
8.4.140.0140.00817.73
8.4.130.0060.00417.65
8.4.120.0120.00820.81
8.4.110.0110.00619.09
8.4.100.0130.00618.12
8.4.90.0130.00917.70
8.4.80.0210.00719.48
8.4.70.0180.00819.42
8.4.60.0430.00818.00
8.4.50.0410.00917.84
8.4.40.0380.01017.41
8.4.30.0460.00717.54
8.4.20.0420.00817.67
8.4.10.0400.00917.35
8.3.290.0120.00920.91
8.3.280.0030.00014.05
8.3.270.0110.01016.64
8.3.260.0130.00716.60
8.3.250.0050.00317.18
8.3.240.0110.00716.70
8.3.230.0120.01016.77
8.3.220.0150.01416.97
8.3.210.0220.00916.97
8.3.200.0170.00516.97
8.3.190.0170.00416.97
8.3.180.0380.00516.97
8.3.170.0500.01316.97
8.3.160.0430.00916.97
8.3.150.0440.00716.97
8.3.140.0430.00816.97
8.3.130.0380.00816.97
8.3.120.0370.00916.97
8.3.110.0370.00716.97
8.3.100.0300.00716.97
8.3.90.0170.00716.97
8.3.80.0250.00416.97
8.3.70.0270.00616.97
8.3.60.0250.00816.97
8.3.50.0260.00916.97
8.3.40.0410.01017.83
8.3.30.0200.00517.45
8.3.20.0320.00917.49
8.3.10.0310.00617.75
8.3.00.0070.00419.33
8.2.300.0110.01020.57
8.2.290.0120.00720.50
8.2.280.0180.00516.97
8.2.270.0350.00616.97
8.2.260.0360.00616.97
8.2.250.0330.00716.97
8.2.240.0160.00316.97
8.2.230.0170.00316.97
8.2.220.0340.00616.97
8.2.210.0300.00916.97
8.2.200.0240.00616.97
8.2.190.0170.00816.97
8.2.180.0220.00516.97
8.2.170.0380.00817.79
8.2.160.0370.01017.89
8.2.150.0360.01017.79
8.2.140.0180.00317.64
8.2.130.0350.01117.61
8.2.120.0380.00817.86
8.2.110.0240.00417.79
8.2.100.0320.01317.56
8.2.90.0350.01117.74
8.2.80.0340.00617.63
8.2.70.0220.00517.82
8.2.60.0240.01017.67
8.2.50.0290.01217.45
8.2.40.0320.00817.82
8.2.30.0340.00717.55
8.2.20.0400.00917.82
8.2.10.0300.00817.86
8.2.00.0200.00517.67
8.1.340.0140.00721.96

preferences:
60.55 ms | 403 KiB | 5 Q