3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [0, 1, 2]; $ref =& $array; // Necessary to trigger the old behavior foreach ($array as $val) { var_dump($val); unset($array[1]); } var_dump($ref)

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)
5.6.130.0100.08318.21
5.6.120.0100.08721.08
5.6.110.0100.04020.98
5.6.100.0030.07321.04
5.6.90.0000.05720.97
5.6.80.0000.04320.39
5.6.70.4370.04020.50
5.5.290.0070.06017.90
5.5.280.0170.07720.73
5.5.270.0030.04720.76
5.5.260.0130.06020.84
5.5.250.0100.06720.61
5.5.240.0030.07320.35
5.4.450.0430.05019.48
5.4.440.0100.06319.55
5.4.430.0200.05019.47
5.4.420.0170.05019.58
5.4.410.0230.04719.45
5.4.400.0200.04719.30
5.4.390.0030.06718.95
5.4.380.0100.05719.20
5.4.370.0100.06319.02
5.4.360.0130.05719.28
5.4.350.0200.04719.00
5.4.340.0170.05318.92
5.4.320.0130.06019.30
5.4.310.0100.05319.25
5.4.300.0230.04719.30
5.4.290.0200.05019.30
5.4.280.0200.06318.80
5.4.270.0130.07018.80
5.4.260.0230.05319.12
5.4.250.0170.05318.91
5.4.240.0400.04319.31
5.4.230.0270.06018.91
5.4.220.0230.05319.30
5.4.210.0330.04719.15
5.4.200.0330.03718.94
5.4.190.0200.05319.14
5.4.180.0300.04719.07
5.4.170.0130.06019.27
5.4.160.0200.05319.17
5.4.150.0130.05719.08
5.4.140.0170.05316.33
5.4.130.0070.06316.48
5.4.120.0130.05716.20
5.4.110.0330.06316.37
5.4.100.0770.03716.50
5.4.90.0500.06016.39
5.4.80.0730.04316.37
5.4.70.0170.03316.48
5.4.60.0270.07316.46
5.4.50.0030.03316.16
5.4.40.0000.07316.36
5.4.30.0070.06716.38
5.4.20.0000.05716.36

preferences:
135.37 ms | 1398 KiB | 7 Q