3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'one' = [1, 2], 'two' = [37, 42], ]; foreach ($arr as $key => list($a, $b)) { var_dump($key, $a, $b); }

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.4.320.3230.04019.17
5.4.310.0030.03719.13
5.4.300.0100.04319.06
5.4.290.0100.04019.09
5.4.280.0170.07019.11
5.4.270.0070.04319.22
5.4.260.0170.03719.09
5.4.250.0300.06718.85
5.4.240.0170.05019.14
5.4.230.0170.07019.14
5.4.220.0300.05319.24
5.4.210.0170.03718.83
5.4.200.0200.06719.30
5.4.190.0200.05319.23
5.4.180.0170.04319.13
5.4.170.0200.04319.09
5.4.160.0200.04318.82
5.4.150.0270.07019.07
5.4.140.0030.07716.36
5.4.130.0200.03716.36
5.4.120.0200.03316.29
5.4.110.0170.04716.20
5.4.100.0200.03716.56
5.4.90.0130.03716.54
5.4.80.0270.02316.53
5.4.70.0130.05016.44
5.4.60.0130.03716.43
5.4.50.0130.04016.53
5.4.40.0170.04316.51
5.4.30.0170.05316.42
5.4.20.0230.05016.53
5.4.10.0170.04016.53
5.4.00.0130.04315.86
5.3.290.0030.04314.76
5.3.280.0100.03714.64
5.3.270.1570.03314.45
5.3.260.2100.04014.56
5.3.250.0370.04014.59
5.3.240.0070.04714.70
5.3.230.0200.03714.44
5.3.220.0270.06314.44
5.3.210.0230.02714.61
5.3.200.0200.04714.41
5.3.190.0130.04014.66
5.3.180.0270.03714.66
5.3.170.0230.07014.52
5.3.160.0130.06014.51
5.3.150.0070.05314.51
5.3.140.0100.04014.43
5.3.130.0130.04014.50
5.3.120.0270.05314.40
5.3.110.0200.04714.39
5.3.100.0230.06013.89
5.3.90.0170.03714.02
5.3.80.0130.03713.89
5.3.70.0100.05314.03
5.3.60.0230.07013.95
5.3.50.0300.06013.74
5.3.40.0200.07013.78
5.3.30.0070.06713.71
5.3.20.0070.03713.64
5.3.10.0030.07713.61
5.3.00.2400.03313.47
5.2.170.2330.02711.19
5.2.160.2170.02710.99
5.2.150.0030.03711.30
5.2.140.0030.04711.03
5.2.130.0170.02711.04
5.2.120.1930.03011.04
5.2.110.2600.02311.15
5.2.100.2100.03310.96
5.2.90.2270.03010.96
5.2.80.2230.03010.98
5.2.70.2200.03011.00
5.2.60.1930.03311.06
5.2.50.2130.03710.95
5.2.40.1930.02310.93
5.2.30.1830.02710.88
5.2.20.1800.02710.81
5.2.10.2170.03310.83
5.2.00.0030.02710.64
5.1.60.0030.02310.00
5.1.50.0070.05310.07
5.1.40.0430.0409.84
5.1.30.1930.03010.29
5.1.20.1970.03310.29
5.1.10.2030.02710.23
5.1.00.0070.03710.07
5.0.50.0030.0208.63
5.0.40.0030.0338.40
5.0.30.0070.0378.23
5.0.20.0000.0308.29
5.0.10.0000.0208.05
5.0.00.0000.0508.24
4.4.90.0730.0136.46
4.4.80.0970.0176.46
4.4.70.0900.0176.46
4.4.60.0970.0106.46
4.4.50.0930.0176.46
4.4.40.0000.0306.46
4.4.30.0000.0306.46
4.4.20.0030.0276.46
4.4.10.0030.0176.46
4.4.00.0000.0506.46
4.3.110.0000.0206.46
4.3.100.0030.0136.46
4.3.90.0000.0236.46
4.3.80.0900.0376.46
4.3.70.0300.0176.46
4.3.60.0030.0136.46
4.3.50.0030.0406.46
4.3.40.0000.0406.46
4.3.30.0000.0336.46
4.3.20.0000.0306.46
4.3.10.0000.0206.46
4.3.00.0000.0336.46

preferences:
146.03 ms | 1394 KiB | 7 Q