3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [1, 2, 3]; $ressult = array_map(function($data) { throw new Exception(); }, $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)
8.3.60.0040.01116.63
8.3.50.0140.00522.01
8.3.40.0000.01418.79
8.3.30.0100.00318.97
8.3.20.0050.00320.21
8.3.10.0040.00423.57
8.3.00.0040.00717.50
8.2.180.0160.00718.20
8.2.170.0060.00922.96
8.2.160.0060.01022.13
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00526.16
8.2.120.0060.00322.14
8.2.110.0060.00322.07
8.2.100.0110.00017.84
8.2.90.0050.00318.82
8.2.80.0090.00017.97
8.2.70.0030.00617.72
8.2.60.0000.00817.79
8.2.50.0060.00318.07
8.2.40.0030.00618.28
8.2.30.0040.00418.05
8.2.20.0050.00317.79
8.2.10.0100.00018.00
8.2.00.0060.00317.78
8.1.280.0070.00725.92
8.1.270.0080.00023.97
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.84
8.1.230.0070.00419.16
8.1.220.0000.00817.76
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0040.00417.53
8.1.180.0060.00318.10
8.1.170.0080.00018.65
8.1.160.0060.00321.93
8.1.150.0000.00818.56
8.1.140.0050.00217.41
8.1.130.0000.00717.80
8.1.120.0030.00617.46
8.1.110.0000.00717.47
8.1.100.0030.00517.48
8.1.90.0040.00417.36
8.1.80.0030.00317.43
8.1.70.0000.00717.37
8.1.60.0030.00517.58
8.1.50.0080.00017.56
8.1.40.0000.00817.56
8.1.30.0000.00817.59
8.1.20.0080.00017.59
8.1.10.0000.00817.45
8.1.00.0000.00717.36
8.0.300.0080.00019.09
8.0.290.0060.00317.16
8.0.280.0050.00218.36
8.0.270.0070.00017.06
8.0.260.0030.00317.10
8.0.250.0040.00416.86
8.0.240.0030.00516.93
8.0.230.0030.00316.95
8.0.220.0030.00316.84
8.0.210.0030.00316.92
8.0.200.0050.00317.03
8.0.190.0000.00816.90
8.0.180.0040.00416.93
8.0.170.0040.00417.04
8.0.160.0040.00416.93
8.0.150.0040.00416.86
8.0.140.0050.00316.84
8.0.130.0050.00313.09
8.0.120.0060.00316.80
8.0.110.0040.00416.86
8.0.100.0070.00016.84
8.0.90.0080.00016.82
8.0.80.0160.00616.91
8.0.70.0000.00716.83
8.0.60.0040.00416.82
8.0.50.0000.00816.89
8.0.30.0110.00816.95
8.0.20.0140.01017.40
8.0.10.0050.00217.12
8.0.00.0120.00516.81
7.4.330.0050.00015.13
7.4.320.0060.00016.60
7.4.300.0030.00316.57
7.4.290.0030.00316.49
7.4.280.0080.00016.48
7.4.270.0000.00716.52
7.4.260.0030.00316.41
7.4.250.0000.00816.55
7.4.240.0060.00116.50
7.4.230.0040.00416.70
7.4.220.0070.01516.36
7.4.210.0060.01016.55
7.4.200.0000.00716.71
7.4.190.0000.00816.40
7.4.160.0040.01116.50
7.4.150.0130.00717.40
7.4.140.0100.00717.86
7.4.130.0080.00916.41
7.4.120.0100.00616.58
7.4.110.0120.00616.51
7.4.100.0120.00916.60
7.4.90.0060.01016.64
7.4.80.0100.00719.39
7.4.70.0070.01016.30
7.4.60.0110.00516.68
7.4.50.0080.00016.52
7.4.40.0170.00022.77
7.4.30.0110.00516.51
7.4.00.0030.01015.25
7.3.330.0060.00013.29
7.3.320.0030.00313.09
7.3.310.0070.00016.32
7.3.300.0070.00016.19
7.3.290.0030.01616.26
7.3.280.0100.00616.30
7.3.270.0080.00917.40
7.3.260.0150.00316.29
7.3.250.0120.00516.55
7.3.240.0100.00616.33
7.3.230.0150.00016.66
7.3.210.0120.00416.48
7.3.200.0130.00719.39
7.3.190.0140.00916.27
7.3.180.0110.01116.34
7.3.170.0100.01016.30
7.3.160.0080.00816.33
7.3.120.0040.01114.80
7.2.330.0070.01016.38
7.2.320.0090.00916.43
7.2.310.0130.00316.61
7.2.300.0000.01516.29
7.2.290.0140.00416.58
7.2.80.0090.00316.71
7.2.60.0210.00916.46
7.2.50.0070.00717.01
7.1.200.0040.01115.86
7.1.100.0060.00618.34
7.1.70.0100.00317.18
7.1.60.0090.01619.46
7.1.50.0280.00934.89
7.1.00.0100.07022.30
7.0.200.0070.00016.92
7.0.140.0070.07022.09
7.0.60.0070.06019.94
7.0.50.0000.04317.87
7.0.40.0070.04020.31
7.0.30.0170.04320.17
7.0.20.0170.04320.20
7.0.10.0000.08720.10
7.0.00.0070.04020.06
5.6.210.0030.06020.71
5.6.200.0000.05318.29
5.6.190.0000.08320.47
5.6.180.0200.07720.48
5.6.170.0270.07320.48
5.6.160.0100.08020.54
5.6.150.0100.07718.16
5.6.140.0070.05018.15
5.6.130.0130.08318.18
5.6.120.0070.04021.02
5.6.110.0100.08021.05
5.6.100.0100.05721.02
5.6.90.0100.05021.11
5.6.80.0170.07720.39
5.6.70.4100.04320.50
5.5.350.0070.04020.38
5.5.340.0100.04717.97
5.5.330.0170.08020.53
5.5.320.0370.07020.35
5.5.310.0300.06020.36
5.5.300.0130.04317.95
5.5.290.0070.04317.96
5.5.280.0070.07320.89
5.5.270.0100.08020.65
5.5.260.0070.05020.80
5.5.250.0130.06320.61
5.5.240.0270.06020.26
5.4.450.0130.05319.59
5.4.440.0900.07719.70
5.4.430.0800.05719.44
5.4.420.0630.00019.32
5.4.410.0130.07718.68
5.4.400.0170.06318.87
5.4.390.0230.04718.81
5.4.380.0200.05718.75
5.4.370.0370.05018.50
5.4.360.0270.05718.82
5.4.350.0010.04012.02
5.4.340.0060.03712.02
5.4.320.0080.04212.51
5.4.310.0090.03412.50
5.4.300.0070.04712.50
5.4.290.0090.04412.48
5.4.280.0080.05112.38
5.4.270.0120.05312.38
5.4.260.0170.09112.38
5.4.250.0140.04112.38
5.4.240.0110.03812.38
5.4.230.0090.04212.38
5.4.220.0220.06612.38
5.4.210.0150.04812.37
5.4.200.0110.05212.37
5.4.190.0220.08512.37
5.4.180.0110.03612.37
5.4.170.0060.04512.38
5.4.160.0130.03512.37
5.4.150.0100.03612.38
5.4.140.0070.04612.06
5.4.130.0070.04312.04
5.4.120.0200.07312.00
5.4.110.0150.04512.00
5.4.100.0090.04212.00
5.4.90.0090.04112.00
5.4.80.0080.04212.00
5.4.70.0070.04011.99
5.4.60.0060.03911.99
5.4.50.0070.04411.99
5.4.40.0080.04011.98
5.4.30.0110.03611.98
5.4.20.0080.03811.98
5.4.10.0090.03711.98
5.4.00.0080.04011.47
5.3.290.0080.03712.80
5.3.280.0160.05212.70
5.3.270.0140.06612.72
5.3.260.0270.05312.72
5.3.250.0240.06612.72
5.3.240.0190.05112.72
5.3.230.0080.04312.71
5.3.220.0060.06312.68
5.3.210.0090.04212.68
5.3.200.0070.04112.68
5.3.190.0120.03712.68
5.3.180.0090.06212.67
5.3.170.0190.05312.67
5.3.160.0080.05312.67
5.3.150.0100.04312.68
5.3.140.0170.04512.66
5.3.130.0200.07812.66
5.3.120.0190.07912.66
5.3.110.0110.06912.66
5.3.100.0130.06712.12
5.3.90.0190.06012.09
5.3.80.0090.04812.07
5.3.70.0050.04912.07
5.3.60.0070.03812.06
5.3.50.0110.03712.00
5.3.40.0040.04012.00
5.3.30.0070.03511.95
5.3.20.0080.04311.72
5.3.10.0070.04611.70
5.3.00.0060.04411.68
5.2.170.0120.0359.18
5.2.160.0100.0439.18
5.2.150.0070.0419.18
5.2.140.0100.0339.18
5.2.130.0100.0519.14
5.2.120.0100.0329.14
5.2.110.0120.0549.14
5.2.100.0080.0429.14
5.2.90.0080.0489.14
5.2.80.0110.0459.14
5.2.70.0080.0459.14
5.2.60.0140.0439.09
5.2.50.0100.0369.05
5.2.40.0120.0529.03
5.2.30.0070.0309.01
5.2.20.0070.0359.00
5.2.10.0100.0248.93
5.2.00.0060.0318.78
5.1.60.0060.0248.07
5.1.50.0050.0288.06
5.1.40.0050.0248.05
5.1.30.0070.0258.40
5.1.20.0060.0268.42
5.1.10.0100.0228.14
5.1.00.0120.0308.14
5.0.50.0040.0236.62
5.0.40.0040.0256.48
5.0.30.0080.0326.30
5.0.20.0090.0256.27
5.0.10.0120.0266.23
5.0.00.0050.0416.23
4.4.90.0050.0204.78
4.4.80.0080.0364.76
4.4.70.0090.0284.75
4.4.60.0060.0224.75
4.4.50.0100.0394.77
4.4.40.0070.0344.71
4.4.30.0080.0244.76
4.4.20.0110.0434.84
4.4.10.0060.0194.85
4.4.00.0080.0374.76
4.3.110.0080.0384.67
4.3.100.0040.0274.66
4.3.90.0050.0204.63
4.3.80.0060.0274.58
4.3.70.0080.0144.63
4.3.60.0030.0164.63
4.3.50.0030.0184.63
4.3.40.0040.0324.54
4.3.30.0070.0173.28
4.3.20.0040.0253.26
4.3.10.0060.0213.21
4.3.00.0130.0208.02

preferences:
38.23 ms | 401 KiB | 5 Q