3v4l.org

run code in 200+ PHP versions simultaneously
<?php $array = array('a' => 'Hello', 'b' => 'World'); array_walk($array, 'adda'); function adda(&$value, &$key) { $key = "a".$key; } var_dump($array);

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)
7.4.00.0050.01014.93
7.3.120.0080.01014.70
7.3.110.0080.01014.54
7.3.100.0100.00414.72
7.3.90.0070.01014.64
7.3.80.0060.00614.67
7.3.70.0070.00714.65
7.3.60.0020.01114.76
7.3.50.0030.01014.73
7.3.40.0030.01014.88
7.3.30.0030.00814.82
7.3.20.0070.00916.64
7.3.10.0080.00716.50
7.3.00.0080.00916.35
7.2.250.0060.01315.05
7.2.240.0080.01014.95
7.2.230.0070.01014.93
7.2.220.0070.00714.89
7.2.210.0080.00614.80
7.2.200.0020.00814.84
7.2.190.0060.01014.86
7.2.180.0070.00614.83
7.2.170.0050.00814.94
7.2.130.0080.00716.58
7.2.120.0110.00916.57
7.2.110.0080.00616.69
7.2.100.0080.00516.58
7.2.90.0120.00216.64
7.2.80.0090.00516.75
7.2.70.0130.00616.63
7.2.60.0060.00816.75
7.2.50.0130.00516.58
7.2.40.0080.00816.75
7.2.30.0080.00716.80
7.2.20.0080.00316.84
7.2.10.0130.00516.71
7.2.00.0040.00917.63
7.1.330.0100.00615.61
7.1.320.0030.00815.87
7.1.310.0060.00715.92
7.1.300.0050.01015.78
7.1.290.0090.00415.64
7.1.280.0040.00615.69
7.1.270.0030.01015.68
7.1.260.0050.00715.85
7.1.250.0070.00815.64
7.1.100.0070.00318.07
7.1.70.0030.01016.87
7.1.60.0110.01419.82
7.1.50.0160.00917.00
7.1.00.0000.08022.46
7.0.200.0000.00716.73
7.0.140.0070.07021.99
7.0.60.0030.08020.07
7.0.50.0030.08317.85
7.0.40.0100.08320.05
7.0.30.0200.07320.34
7.0.20.0270.08020.15
7.0.10.0130.05020.26
7.0.00.0070.09020.23
5.6.280.0070.07021.10
5.6.210.0170.06720.48
5.6.200.0130.05718.23
5.6.190.0100.03720.59
5.6.180.0370.05020.50
5.6.170.0200.03720.50
5.6.160.0070.03720.48
5.6.150.0070.08318.15
5.6.140.0070.07018.21
5.6.130.0070.08018.21
5.6.120.0130.03721.10
5.6.110.0070.08321.01
5.6.100.0100.08320.96
5.6.90.0130.06721.00
5.6.80.0130.07320.43
5.5.350.4230.04320.28
5.5.340.0100.03718.02
5.5.330.0000.06020.56
5.5.320.0300.07320.38
5.5.310.0300.07020.28
5.5.300.0170.07317.98
5.5.290.0000.05717.96
5.5.280.0030.07020.80
5.5.270.0070.04320.76
5.5.260.0030.04020.88
5.5.250.0130.07720.59
5.5.240.0200.04320.12
5.4.450.0330.04319.41
5.4.440.0300.04019.41
5.4.430.0370.05719.39
5.4.420.0270.06019.39
5.4.410.0230.04719.26
5.4.400.0330.07019.09
5.4.390.0370.07318.88
5.4.380.0330.07018.93
5.4.370.0370.03018.99
5.4.360.0370.06019.09
5.4.350.0430.06019.15
5.4.340.0370.06019.12
5.4.320.0300.05319.16
5.4.310.0270.05019.06
5.4.300.0370.07019.05
5.4.290.0400.05718.92
5.4.280.0230.04318.84
5.4.270.0430.05318.93
5.4.260.0330.05019.13
5.4.250.0300.06019.12
5.4.240.0230.04318.85
5.4.230.0230.06319.08
5.4.220.0230.04719.14
5.4.210.0300.03319.07
5.4.200.0300.05319.06
5.4.190.0300.06318.86
5.4.180.0270.05318.86
5.4.170.0330.06319.07
5.4.160.0400.06718.84
5.4.150.0400.06019.05
5.4.140.0300.06316.50
5.4.130.0230.04316.50
5.4.120.0330.03716.34
5.4.110.0270.05316.54
5.4.100.0330.04316.40
5.4.90.0400.05716.51
5.4.80.0230.03716.26
5.4.70.0370.06316.44
5.4.60.0300.06716.43
5.4.50.0270.06316.32
5.4.40.0270.04716.34
5.4.30.0400.06016.34
5.4.20.0330.06716.55
5.4.10.0370.06716.16
5.4.00.0270.03715.79
5.3.290.0370.04714.56
5.3.280.0230.03714.49
5.3.270.0400.06014.51
5.3.260.0300.06014.69
5.3.250.0330.07014.82
5.3.240.0270.04314.62
5.3.230.0400.05714.52
5.3.220.0300.04714.73
5.3.210.0400.06314.46
5.3.200.0330.06714.49
5.3.190.0230.05314.72
5.3.180.0300.03014.48
5.3.170.0430.06314.55
5.3.160.0300.06014.67
5.3.150.0330.05014.60
5.3.140.0430.06314.54
5.3.130.0300.04714.63
5.3.120.0270.03714.70
5.3.110.0330.06714.62
5.3.100.0370.06314.20
5.3.90.0330.04014.01
5.3.80.0230.05013.93
5.3.70.0270.03314.02
5.3.60.0270.03714.08
5.3.50.0300.07014.02
5.3.40.0400.06713.99
5.3.30.0270.04713.78
5.3.20.0270.06713.82
5.3.10.0400.05713.66
5.3.00.0300.04013.75
5.2.170.0200.04311.23
5.2.160.0270.05011.30
5.2.150.0230.02711.07
5.2.140.0200.03011.04
5.2.130.0200.03311.11
5.2.120.0230.02711.18
5.2.110.0300.04711.25
5.2.100.0330.02711.10
5.2.90.0170.03011.01
5.2.80.0270.06011.18
5.2.70.0330.04710.99
5.2.60.0200.05710.96
5.2.50.0270.05011.18
5.2.40.0200.06011.02
5.2.30.0200.05711.08
5.2.20.0170.05310.86
5.2.10.0270.05011.08
5.2.00.0300.05010.68
5.1.60.0270.0439.88
5.1.50.0270.05010.14
5.1.40.0200.04710.13
5.1.30.0230.05310.34
5.1.20.0270.03710.31
5.1.10.0170.03310.19
5.1.00.0170.0309.96
5.0.50.0100.0278.47
5.0.40.0130.0408.31
5.0.30.0130.0538.27
5.0.20.0100.0378.12
5.0.10.0130.0238.12
5.0.00.0070.0508.14
4.4.90.0100.0335.98
4.4.80.0070.0335.98
4.4.70.0100.0235.98
4.4.60.0170.0275.98
4.4.50.0130.0175.98
4.4.40.0130.0535.98
4.4.30.0100.0335.98
4.4.20.0130.0235.98
4.4.10.0100.0275.98
4.4.00.0130.0475.98
4.3.110.0100.0305.98
4.3.100.0130.0205.98
4.3.90.0070.0235.98
4.3.80.0170.0375.98
4.3.70.0100.0335.98
4.3.60.0130.0205.98
4.3.50.0100.0235.98
4.3.40.0170.0435.98
4.3.30.0100.0275.98
4.3.20.0030.0275.98
4.3.10.0070.0375.98
4.3.00.0030.0175.98