3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3,4); $b = array('a', 'b', 'c'); print_r($a); array_walk($a, function(&$item) use ($b) { $item *= 2; }); print_r($a);

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.3.60.0090.00616.75
8.3.50.0120.00816.42
8.3.40.0070.00718.54
8.3.30.0110.00418.45
8.3.20.0080.00018.77
8.3.10.0000.00820.36
8.3.00.0050.00319.25
8.2.180.0120.00916.63
8.2.170.0070.01422.96
8.2.160.0070.00720.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00419.36
8.2.110.0030.00620.91
8.2.100.0080.00417.78
8.2.90.0060.00319.35
8.2.80.0060.00317.93
8.2.70.0040.00417.38
8.2.60.0090.00017.91
8.2.50.0030.00618.07
8.2.40.0060.00318.16
8.2.30.0090.00018.08
8.2.20.0040.00417.77
8.2.10.0000.00717.72
8.2.00.0080.00017.74
8.1.280.0110.00425.92
8.1.270.0050.00224.66
8.1.260.0090.00026.35
8.1.250.0050.00228.09
8.1.240.0130.00922.58
8.1.230.0120.00020.87
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0100.00017.48
8.1.190.0050.00317.40
8.1.180.0000.00818.10
8.1.170.0000.00718.84
8.1.160.0030.00518.93
8.1.150.0040.00418.56
8.1.140.0040.00417.41
8.1.130.0030.00317.73
8.1.120.0000.00717.44
8.1.110.0040.00417.46
8.1.100.0040.00417.38
8.1.90.0000.00817.35
8.1.80.0020.00517.34
8.1.70.0060.00317.37
8.1.60.0050.00517.63
8.1.50.0000.00817.46
8.1.40.0000.00817.53
8.1.30.0040.00417.56
8.1.20.0070.00017.53
8.1.10.0080.00017.49
8.1.00.0050.00317.40
8.0.300.0080.00019.73
8.0.290.0020.00516.75
8.0.280.0000.00718.43
8.0.270.0000.00717.30
8.0.260.0030.00316.68
8.0.250.0040.00416.83
8.0.240.0050.00216.88
8.0.230.0000.00716.93
8.0.220.0030.00316.88
8.0.210.0060.00316.77
8.0.200.0070.00016.99
8.0.190.0100.00016.95
8.0.180.0000.00716.94
8.0.170.0000.00916.88
8.0.160.0080.00016.95
8.0.150.0000.00916.84
8.0.140.0080.00016.80
8.0.130.0000.00613.22
8.0.120.0000.00716.91
8.0.110.0080.00016.77
8.0.100.0000.00816.86
8.0.90.0000.00716.85
8.0.80.0100.00716.84
8.0.70.0050.00316.86
8.0.60.0000.00716.93
8.0.50.0040.00416.75
8.0.30.0070.01517.07
8.0.20.0120.00717.15
8.0.10.0040.00416.94
8.0.00.0130.00516.68
7.4.330.0000.00513.00
7.4.320.0030.00316.55
7.4.300.0030.00316.63
7.4.290.0000.00716.52
7.4.280.0040.00416.55
7.4.270.0000.00716.52
7.4.260.0030.00313.33
7.4.250.0030.00616.53
7.4.240.0040.00416.40
7.4.230.0000.00716.63
7.4.220.0090.00916.41
7.4.210.0070.00916.49
7.4.200.0030.00516.47
7.4.190.0050.00316.44
7.4.160.0060.00916.46
7.4.150.0070.01816.54
7.4.140.0140.00316.42
7.4.130.0100.00816.55
7.4.120.0080.00816.52
7.4.110.0160.00016.34
7.4.100.0150.00416.51
7.4.90.0160.00716.51
7.4.80.0110.00616.41
7.4.70.0110.00516.60
7.4.60.0060.01116.32
7.4.50.0000.00716.25
7.4.40.0030.01016.59
7.4.30.0120.00616.44
7.4.00.0030.01214.76
7.3.330.0000.00613.16
7.3.320.0000.00513.16
7.3.310.0000.00716.27
7.3.300.0060.00016.26
7.3.290.0150.00016.27
7.3.280.0070.00916.29
7.3.270.0100.00716.36
7.3.260.0110.00916.27
7.3.250.0150.00316.43
7.3.240.0030.01316.30
7.3.230.0150.00316.38
7.3.210.0160.00316.26
7.3.200.0170.00319.39
7.3.190.0070.01316.55
7.3.180.0130.00316.30
7.3.170.0100.00616.30
7.3.160.0060.01016.56
7.3.120.0070.00715.04
7.2.330.0160.00616.62
7.2.320.0100.01016.34
7.2.310.0120.00616.69
7.2.300.0030.02016.39
7.2.290.0070.01016.63
7.2.60.0000.01216.54
7.2.50.0040.00816.93
7.2.00.0070.01019.33
7.1.200.0000.00815.61
7.1.100.0000.00918.13
7.1.70.0000.00717.13
7.1.60.0100.01419.40
7.1.50.0070.00316.97
7.1.00.0000.07722.40
7.0.200.0200.00714.34
7.0.140.0000.07722.00
7.0.120.0030.05721.95
7.0.60.0070.04319.86
7.0.50.0100.07317.88
7.0.40.0170.06720.25
7.0.30.0400.04720.20
7.0.20.0300.07320.23
7.0.10.0000.05720.22
7.0.00.0070.04320.20
5.6.280.0070.07021.04
5.6.210.0070.07020.51
5.6.200.0070.06318.29
5.6.190.0100.03720.55
5.6.180.3030.04320.61
5.6.170.0330.07020.71
5.6.160.0170.04320.57
5.6.150.0170.07018.21
5.6.140.0130.06318.28
5.6.130.0000.04318.23
5.6.120.0100.08020.97
5.6.110.0130.07720.96
5.6.100.0100.08021.00
5.6.90.0170.06020.97
5.6.80.0170.05320.44
5.5.350.0330.04720.32
5.5.340.0070.07017.99
5.5.330.0030.08720.35
5.5.320.0500.05720.51
5.5.310.0270.04720.37
5.5.300.0000.04317.92
5.5.290.0070.08017.98
5.5.280.0030.08320.75
5.5.270.0070.06720.77
5.5.260.0070.05720.80
5.5.250.0100.07020.78
5.5.240.0270.04720.19
5.4.450.0130.07319.33
5.4.440.0070.08019.30
5.4.430.0100.05019.21
5.4.420.0070.07719.20
5.4.410.0070.07719.40
5.4.400.0200.05018.88
5.4.390.0100.04019.00
5.4.380.0070.07719.09
5.4.370.0100.07719.15
5.4.360.0100.04719.15
5.4.350.0200.06719.00
5.4.340.0070.08018.86
5.4.320.0100.06719.25
5.4.310.0030.04019.24
5.4.300.0130.05019.00
5.4.290.0100.06719.14
5.4.280.0170.07018.85
5.4.270.0100.04018.85
5.4.260.0000.04319.21
5.4.250.0230.06019.15
5.4.240.0100.07318.97
5.4.230.0070.06318.99
5.4.220.0070.07319.24
5.4.210.0100.04019.17
5.4.200.0070.04018.84
5.4.190.0030.07719.18
5.4.180.0000.07319.13
5.4.170.0070.07319.10
5.4.160.0100.07319.18
5.4.150.0100.07319.23
5.4.140.0100.07016.27
5.4.130.0070.06716.43
5.4.120.0070.08316.41
5.4.110.0100.07016.41
5.4.100.0030.06316.45
5.4.90.0030.07316.43
5.4.80.0030.03716.29
5.4.70.0030.03716.39
5.4.60.0030.06316.38
5.4.50.0170.04316.38
5.4.40.0130.06716.41
5.4.30.0030.06316.39
5.4.20.0100.03316.39
5.4.10.0100.06016.27
5.4.00.0030.07716.00
5.3.290.0000.04714.70
5.3.280.0070.07314.66
5.3.270.0070.05014.64
5.3.260.0030.08314.64
5.3.250.0100.06714.76
5.3.240.0070.07714.52
5.3.230.0070.07714.60
5.3.220.0170.03714.62
5.3.210.0100.07314.55
5.3.200.0000.07714.57
5.3.190.0000.04314.46
5.3.180.0130.06714.57
5.3.170.0030.03714.55
5.3.160.0030.08314.45
5.3.150.0130.06314.71
5.3.140.0030.07714.58
5.3.130.0100.05714.58
5.3.120.0030.04714.56
5.3.110.0030.05014.57
5.3.100.0030.06314.09
5.3.90.0030.04314.08
5.3.80.0070.04014.09
5.3.70.0030.07314.11
5.3.60.0000.04314.00
5.3.50.0070.07713.94
5.3.40.0070.06713.98
5.3.30.0030.07714.05
5.3.20.0000.04313.66
5.3.10.0070.03313.65
5.3.00.0030.04713.66
5.2.170.0070.06011.13
5.2.160.0070.04311.09
5.2.150.0030.04711.30
5.2.140.0100.05711.13
5.2.130.0070.02710.96
5.2.120.0000.03311.04
5.2.110.0100.05711.06
5.2.100.0030.03011.00
5.2.90.0130.05310.98
5.2.80.0070.06311.25
5.2.70.0070.05711.03
5.2.60.0000.05310.95
5.2.50.0030.06310.84
5.2.40.0000.05010.88
5.2.30.0030.05710.85
5.2.20.0070.06010.91
5.2.10.0030.03710.86
5.2.00.0070.05310.76
5.1.60.0100.05310.06
5.1.50.0100.0509.97
5.1.40.0030.03010.13
5.1.30.0100.04710.34
5.1.20.0030.05710.31
5.1.10.0100.05010.22
5.1.00.0030.05310.11
5.0.50.0000.0308.45
5.0.40.0030.0208.25
5.0.30.0070.0608.23
5.0.20.0030.0338.11
5.0.10.0030.0208.14
5.0.00.0000.0608.17
4.4.90.0070.0237.96
4.4.80.0030.0337.96
4.4.70.0000.0237.96
4.4.60.0030.0277.96
4.4.50.0000.0337.96
4.4.40.0070.0337.96
4.4.30.0000.0407.96
4.4.20.0000.0337.96
4.4.10.0000.0277.96
4.4.00.0030.0307.96
4.3.110.0000.0207.96
4.3.100.0070.0337.96
4.3.90.0000.0177.96
4.3.80.0070.0507.96
4.3.70.0000.0337.96
4.3.60.0070.0307.96
4.3.50.0070.0237.96
4.3.40.0070.0477.96
4.3.30.0070.0207.96
4.3.20.0000.0237.96
4.3.10.0030.0377.96
4.3.00.0030.0307.96

preferences:
42.27 ms | 401 KiB | 5 Q