3v4l.org

run code in 300+ PHP versions simultaneously
<?php class mc { public function go(array $arr) { array_walk($arr, array($this, "walkIt")); } private function walkIt($val) { echo $val . "<br />"; } public function export() { return array($this, 'walkIt'); } } $data = array(1,2,3,4); $m = new mc; $m->go($data); array_walk($data, $m->export());

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.0170.00318.43
8.3.50.0120.00821.27
8.3.40.0110.00718.68
8.3.30.0100.01320.20
8.3.20.0000.00818.82
8.3.10.0030.00521.05
8.3.00.0040.00422.46
8.2.180.0110.00716.50
8.2.170.0070.01122.96
8.2.160.0100.00320.57
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0100.00726.16
8.2.120.0040.00421.11
8.2.110.0040.01420.39
8.2.100.0040.00817.91
8.2.90.0030.00619.12
8.2.80.0070.00017.97
8.2.70.0040.00417.50
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0050.00318.16
8.2.30.0000.00721.22
8.2.20.0040.00417.72
8.2.10.0060.00317.86
8.2.00.0040.00417.68
8.1.280.0030.01325.92
8.1.270.0030.00623.99
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0030.00622.42
8.1.230.0080.00420.99
8.1.220.0000.00818.77
8.1.210.0080.00018.88
8.1.200.0090.00017.35
8.1.190.0040.00417.53
8.1.180.0000.00818.10
8.1.170.0040.00418.71
8.1.160.0000.00718.81
8.1.150.0030.00618.68
8.1.140.0020.00517.50
8.1.130.0000.00717.75
8.1.120.0040.00417.45
8.1.110.0040.00417.48
8.1.100.0040.00417.44
8.1.90.0000.00717.31
8.1.80.0000.00817.52
8.1.70.0030.00317.41
8.1.60.0040.00417.57
8.1.50.0000.00817.59
8.1.40.0040.00417.50
8.1.30.0000.00817.52
8.1.20.0090.00017.62
8.1.10.0040.00417.61
8.1.00.0090.00017.42
8.0.300.0000.00820.03
8.0.290.0000.00717.18
8.0.280.0030.00518.43
8.0.270.0000.00717.13
8.0.260.0070.00016.88
8.0.250.0000.00716.91
8.0.240.0040.00417.07
8.0.230.0050.00216.96
8.0.220.0000.00816.97
8.0.210.0030.00316.84
8.0.200.0040.00416.92
8.0.190.0000.00717.00
8.0.180.0040.00417.01
8.0.170.0040.00416.96
8.0.160.0000.00716.82
8.0.150.0000.00717.00
8.0.140.0050.00216.81
8.0.130.0030.00313.45
8.0.120.0040.00416.98
8.0.110.0040.00416.98
8.0.100.0000.00716.92
8.0.90.0050.00317.05
8.0.80.0090.00616.88
8.0.70.0020.00516.79
8.0.60.0000.00716.81
8.0.50.0050.00216.81
8.0.30.0140.01017.09
8.0.20.0080.01117.40
8.0.10.0000.00716.93
8.0.00.0070.01416.84
7.4.330.0060.00016.81
7.4.320.0000.00716.40
7.4.300.0030.00316.48
7.4.290.0000.00716.47
7.4.280.0080.00016.68
7.4.270.0030.00316.59
7.4.260.0000.00613.28
7.4.250.0040.00416.42
7.4.240.0000.00716.58
7.4.230.0040.00416.65
7.4.220.0090.01316.62
7.4.210.0070.00816.60
7.4.200.0070.00016.41
7.4.190.0030.00516.68
7.4.160.0150.00716.68
7.4.150.0100.00717.40
7.4.140.0120.00517.86
7.4.130.0120.00516.50
7.4.120.0030.01616.57
7.4.110.0080.00816.38
7.4.100.0040.01316.58
7.4.90.0060.01216.54
7.4.80.0070.01019.39
7.4.70.0080.00816.39
7.4.60.0060.01616.48
7.4.50.0050.00316.55
7.4.40.0100.00022.77
7.4.30.0070.01016.46
7.4.00.0070.00715.20
7.3.330.0000.00513.14
7.3.320.0050.00013.31
7.3.310.0030.00316.38
7.3.300.0050.00316.24
7.3.290.0130.00716.32
7.3.280.0100.00716.37
7.3.270.0100.00717.40
7.3.260.0150.00818.24
7.3.250.0130.00616.32
7.3.240.0100.00616.49
7.3.230.0030.01516.39
7.3.210.0130.01016.29
7.3.200.0110.00719.39
7.3.190.0150.00616.28
7.3.180.0060.01016.55
7.3.170.0030.01316.46
7.3.160.0150.00616.33
7.3.120.0100.00714.60
7.2.330.0100.01016.39
7.2.320.0140.00316.83
7.2.310.0110.00816.72
7.2.300.0040.01316.56
7.2.290.0120.01216.57
7.1.100.0100.00718.06
7.1.70.0120.00416.95
7.1.60.0090.00619.17
7.1.50.0260.01334.79
7.1.00.0070.05322.44
7.0.200.0080.00016.84
7.0.140.0030.07022.18
7.0.100.0030.04319.91
7.0.90.0070.03019.91
7.0.80.0030.03319.85
7.0.70.0100.03019.84
7.0.60.0070.03319.78
7.0.50.0000.03720.24
7.0.40.0070.03720.11
7.0.30.0030.03720.05
7.0.20.0100.03020.10
7.0.10.0100.04320.13
7.0.00.0030.03320.02
5.6.250.0130.03320.82
5.6.240.0030.04020.68
5.6.230.0030.04320.64
5.6.220.0000.03720.65
5.6.210.0000.03720.57
5.6.200.0030.03320.97
5.6.190.0000.03720.94
5.6.180.0030.03721.12
5.6.170.0030.03320.94
5.6.160.0030.03321.05
5.6.150.0030.03321.06
5.6.140.0070.03021.11
5.6.130.0070.03021.08
5.6.120.0030.03321.02
5.6.110.0070.03320.95
5.6.100.0000.04021.04
5.6.90.0070.03320.98
5.6.80.0030.03320.32
5.6.70.0070.03320.55
5.6.60.0070.03020.41
5.6.50.0000.07320.44
5.6.40.0100.05320.38
5.6.30.0070.07020.39
5.6.20.0070.06720.46
5.6.10.0070.04320.45
5.6.00.0100.04720.26
5.5.380.0070.04720.52
5.5.370.0030.04020.47
5.5.360.0030.03320.37
5.5.350.0000.03720.48
5.5.340.0070.03020.88
5.5.330.0030.03320.86
5.5.320.0070.03020.79
5.5.310.0030.04020.83
5.5.300.0030.03320.92
5.5.290.0000.04020.91
5.5.280.0000.04020.91
5.5.270.0070.03020.83
5.5.260.0030.03320.90
5.5.250.0070.03720.68
5.5.240.0070.03320.27
5.5.230.0100.02720.18
5.5.220.0030.03320.21
5.5.210.0100.06720.28
5.5.200.0030.06020.27
5.5.190.0200.05320.20
5.5.180.0130.05720.15
5.5.160.0170.06720.25
5.5.150.0100.03720.25
5.5.140.0030.04320.11
5.5.130.0070.04320.19
5.5.120.0100.06320.25
5.5.110.0070.04720.08
5.5.100.0100.05320.04
5.5.90.0030.06319.94
5.5.80.0130.07020.04
5.5.70.0070.07719.96
5.5.60.0100.04720.06
5.5.50.0070.06720.06
5.5.40.0070.05020.05
5.5.30.0130.06020.05
5.5.20.0170.03720.08
5.5.10.0100.07720.00
5.5.00.0070.05319.97
5.4.450.0030.03319.54
5.4.440.0000.03719.51
5.4.430.0130.02319.35
5.4.420.0070.03319.50
5.4.410.0070.03319.35
5.4.400.0030.03019.03
5.4.390.0000.03319.13
5.4.380.0000.03319.04
5.4.370.0030.06319.18
5.4.360.0100.04019.16
5.4.350.0130.05319.16
5.4.340.0070.04019.12
5.4.320.0170.05319.03
5.4.310.0100.04019.12
5.4.300.0070.04019.23
5.4.290.0070.07319.13
5.4.280.0130.05318.87
5.4.270.0000.04319.02
5.4.260.0030.05719.05
5.4.250.0200.06719.12
5.4.240.0170.06019.25
5.4.230.0100.05319.14
5.4.220.0100.06019.03
5.4.210.0030.05319.03
5.4.200.0300.05718.84
5.4.190.0070.06018.93
5.4.180.0130.04019.22
5.4.170.0030.07318.93
5.4.160.0070.04319.03
5.4.150.0030.05319.18
5.4.140.0070.05316.43
5.4.130.0030.05316.41
5.4.120.0030.04716.42
5.4.110.0030.04716.58
5.4.100.0070.06016.45
5.4.90.0170.04316.35
5.4.80.0070.04316.34
5.4.70.0130.03316.34
5.4.60.0170.04716.50
5.4.50.0100.05716.39
5.4.40.0130.07016.46
5.4.30.0170.06716.41
5.4.20.0170.05316.36
5.4.10.0030.06716.35
5.4.00.0030.05715.78
5.3.290.0030.06314.66
5.3.280.0130.05714.60
5.3.270.0130.04014.70
5.3.260.0070.04714.67
5.3.250.0070.04714.54
5.3.240.0200.05014.74
5.3.230.0030.05714.55
5.3.220.0070.03714.50
5.3.210.0030.05314.54
5.3.200.0100.06014.63
5.3.190.0000.07014.69
5.3.180.0070.05314.52
5.3.170.0100.05314.50
5.3.160.0070.05314.57
5.3.150.0200.05714.50
5.3.140.0130.07314.69
5.3.130.0170.07014.64
5.3.120.0070.06314.58
5.3.110.0070.06714.68
5.3.100.0030.06714.02
5.3.90.0070.05714.03
5.3.80.0000.05313.93
5.3.70.0000.04714.04
5.3.60.0070.03714.13
5.3.50.0070.05013.88
5.3.40.0000.07013.86
5.3.30.0130.06013.89
5.3.20.0030.07013.83
5.3.10.0000.04313.79
5.3.00.0070.05013.76
5.2.170.0170.03311.20
5.2.160.0000.04711.14
5.2.150.0070.04011.09
5.2.140.0000.05711.06
5.2.130.0030.05311.16
5.2.120.0030.04311.12
5.2.110.0100.04011.23
5.2.100.0070.03311.13
5.2.90.0000.03311.20
5.2.80.0000.04011.19
5.2.70.0000.03711.13
5.2.60.0000.05011.18
5.2.50.0130.03710.88
5.2.40.0070.03711.06
5.2.30.0070.05011.01
5.2.20.0070.04010.88
5.2.10.0070.03710.93
5.2.00.0030.03710.73
5.1.60.0100.02710.50
5.1.50.0100.02010.50
5.1.40.0000.03010.50
5.1.30.0000.03010.50
5.1.20.0030.05310.50
5.1.10.0000.05310.50
5.1.00.0030.04710.50
5.0.50.0000.03710.50
5.0.40.0000.03310.50
5.0.30.0070.03710.50
5.0.20.0070.03710.50
5.0.10.0030.02310.50
5.0.00.0070.04010.50
4.4.90.0130.02310.50
4.4.80.0000.02010.50
4.4.70.0030.02310.50
4.4.60.0030.02310.50
4.4.50.0000.02710.50
4.4.40.0000.03310.50
4.4.30.0000.03010.50
4.4.20.0000.03010.50
4.4.10.0070.02710.50
4.4.00.0000.03310.50
4.3.110.0000.02310.50
4.3.100.0070.01010.50
4.3.90.0030.02710.50
4.3.80.0000.03710.50
4.3.70.0000.02310.50
4.3.60.0000.03010.50
4.3.50.0030.03010.50
4.3.40.0000.04310.50
4.3.30.0030.02310.50
4.3.20.0000.02310.50
4.3.10.0000.03710.50
4.3.00.0000.02310.50

preferences:
50.08 ms | 401 KiB | 5 Q