3v4l.org

run code in 300+ PHP versions simultaneously
<?php function cube($n, $m) { return($n * $n + $m); } $a = array(1, 2, 3, 4, 5); $c = array(1, 2, 3, 4); $b = array_map("cube", $a, $c); print_r($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)
8.3.60.0090.00616.38
8.3.50.0140.00722.73
8.3.40.0100.00718.84
8.3.30.0080.00618.89
8.3.20.0080.00020.08
8.3.10.0050.00320.65
8.3.00.0040.00419.16
8.2.180.0130.00718.16
8.2.170.0120.00322.96
8.2.160.0000.01420.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0090.00019.30
8.2.110.0030.00622.25
8.2.100.0040.00717.88
8.2.90.0000.00819.21
8.2.80.0000.00819.17
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0070.00018.16
8.2.30.0070.00019.48
8.2.20.0070.00017.72
8.2.10.0040.00417.98
8.2.00.0030.00517.80
8.1.280.0140.00325.92
8.1.270.0060.00323.96
8.1.260.0050.00226.35
8.1.250.0030.00628.09
8.1.240.0060.00322.46
8.1.230.0120.00020.97
8.1.220.0000.00818.77
8.1.210.0000.00820.77
8.1.200.0060.00317.35
8.1.190.0030.00617.52
8.1.180.0050.00318.10
8.1.170.0000.00818.59
8.1.160.0050.00218.69
8.1.150.0070.00018.78
8.1.140.0000.00717.39
8.1.130.0000.00717.73
8.1.120.0030.00517.42
8.1.110.0000.00717.40
8.1.100.0030.00417.28
8.1.90.0040.00417.30
8.1.80.0050.00217.29
8.1.70.0000.00717.36
8.1.60.0090.00017.48
8.1.50.0000.00917.30
8.1.40.0070.00017.50
8.1.30.0050.00317.47
8.1.20.0040.00417.55
8.1.10.0000.00717.51
8.1.00.0000.00717.50
8.0.300.0000.01119.72
8.0.290.0030.00317.18
8.0.280.0030.00318.46
8.0.270.0030.00317.25
8.0.260.0000.00617.16
8.0.250.0000.00717.01
8.0.240.0040.00416.88
8.0.230.0040.00416.89
8.0.220.0040.00316.79
8.0.210.0000.00716.92
8.0.200.0000.00816.90
8.0.190.0030.00316.96
8.0.180.0040.00416.96
8.0.170.0000.00716.95
8.0.160.0050.00216.88
8.0.150.0000.00716.84
8.0.140.0040.00416.80
8.0.130.0050.00013.33
8.0.120.0030.00516.76
8.0.110.0000.00716.75
8.0.100.0030.00316.90
8.0.90.0000.00716.93
8.0.80.0080.01116.87
8.0.70.0000.00717.00
8.0.60.0000.00717.00
8.0.50.0000.00816.86
8.0.30.0030.01517.13
8.0.20.0100.01217.40
8.0.10.0040.00417.06
8.0.00.0140.00416.62
7.4.330.0000.00515.03
7.4.320.0000.00616.45
7.4.300.0030.00316.48
7.4.290.0030.00316.55
7.4.280.0000.00716.42
7.4.270.0020.00516.42
7.4.260.0030.00716.51
7.4.250.0040.00416.53
7.4.240.0020.00516.43
7.4.230.0000.00616.25
7.4.220.0060.00916.56
7.4.210.0140.00716.55
7.4.200.0070.00016.52
7.4.160.0130.00316.51
7.4.150.0090.00917.40
7.4.140.0110.00917.86
7.4.130.0090.00916.37
7.4.120.0070.01516.33
7.4.110.0140.00916.56
7.4.100.0070.01116.55
7.4.90.0130.00416.28
7.4.80.0080.00816.55
7.4.70.0100.00716.48
7.4.60.0090.00616.47
7.4.50.0090.00016.46
7.4.40.0060.01016.52
7.4.30.0060.01016.60
7.4.00.0090.00714.92
7.3.330.0030.00313.26
7.3.320.0000.00613.23
7.3.310.0070.00016.05
7.3.300.0000.00716.09
7.3.290.0090.00716.17
7.3.280.0070.00916.21
7.3.270.0030.01417.40
7.3.260.0120.01216.25
7.3.250.0110.00516.28
7.3.240.0080.00816.18
7.3.230.0140.00616.39
7.3.210.0060.01316.36
7.3.200.0130.00719.39
7.3.190.0070.01516.30
7.3.180.0080.00916.39
7.3.170.0090.00816.46
7.3.160.0100.00616.17
7.3.120.0060.01214.64
7.3.110.0100.00714.57
7.3.100.0060.00614.59
7.3.90.0100.00714.86
7.3.80.0000.01414.71
7.3.70.0070.00814.71
7.3.60.0100.00714.94
7.3.50.0070.00714.55
7.3.40.0080.00414.38
7.3.30.0030.01314.48
7.3.20.0040.01516.45
7.3.10.0060.00916.87
7.3.00.0030.00616.62
7.2.330.0130.01316.38
7.2.320.0200.00316.66
7.2.310.0090.00916.30
7.2.300.0160.00016.63
7.2.290.0060.01116.63
7.2.250.0080.00815.14
7.2.240.0100.00315.07
7.2.230.0100.00615.09
7.2.220.0060.00915.21
7.2.210.0030.00614.88
7.2.200.0100.00714.82
7.2.190.0070.01014.98
7.2.180.0060.00914.93
7.2.170.0030.01015.08
7.2.00.0060.00319.13
7.1.330.0030.00915.84
7.1.320.0080.00815.94
7.1.310.0060.00915.89
7.1.300.0060.01215.60
7.1.290.0070.00715.67
7.1.280.0140.00315.70
7.1.270.0000.01415.76
7.1.260.0150.00615.85
7.1.100.0030.00618.00
7.1.70.0040.00416.87
7.1.60.0100.01419.34
7.1.50.0070.01816.98
7.1.00.0030.07722.48
7.0.200.0000.00716.70
7.0.140.0000.05322.09
7.0.60.0130.08319.95
7.0.50.0170.07317.86
7.0.40.0070.04320.03
7.0.30.0200.03720.25
7.0.20.0200.04020.20
7.0.10.0170.04320.09
7.0.00.0170.08020.05
5.6.280.0030.07321.02
5.6.210.0070.04720.72
5.6.200.0100.04018.19
5.6.190.0030.04320.67
5.6.180.0200.04320.58
5.6.170.0270.07320.55
5.6.160.0000.06320.50
5.6.150.0070.04318.27
5.6.140.0070.08018.12
5.6.130.0170.06718.12
5.6.120.0070.07721.16
5.6.110.0030.05020.89
5.6.100.0230.06720.99
5.6.90.0030.09020.98
5.6.80.0070.05720.37
5.6.70.3000.03720.36
5.5.350.0070.06020.43
5.5.340.0030.08717.95
5.5.330.0070.04320.27
5.5.320.0500.07020.27
5.5.310.0330.09320.51
5.5.300.0070.04017.99
5.5.290.0030.04017.95
5.5.280.0000.04320.68
5.5.270.0070.09020.96
5.5.260.0030.06020.65
5.5.250.0100.08020.55
5.5.240.0230.07320.07
5.4.450.0370.03719.33
5.4.440.0300.03719.47
5.4.430.0500.03019.19
5.4.420.0070.06019.21
5.4.410.0030.06019.41
5.4.400.0000.06718.92
5.4.390.0130.06719.04
5.4.380.0030.06019.07
5.4.370.0170.04719.16
5.4.360.0200.04319.06
5.4.350.0070.03712.02
5.4.340.0150.05312.02
5.4.320.0080.03612.51
5.4.310.0060.04412.50
5.4.300.0050.03912.51
5.4.290.0090.04012.50
5.4.280.0050.03812.40
5.4.270.0060.03812.40
5.4.260.0080.04012.40
5.4.250.0080.04312.40
5.4.240.0100.03812.40
5.4.230.0030.04312.39
5.4.220.0040.04312.39
5.4.210.0080.03712.39
5.4.200.0100.04212.39
5.4.190.0080.04012.39
5.4.180.0090.04512.39
5.4.170.0110.03212.40
5.4.160.0050.04312.39
5.4.150.0050.03912.39
5.4.140.0070.04012.07
5.4.130.0060.04012.05
5.4.120.0070.03712.02
5.4.110.0100.03512.01
5.4.100.0060.03512.01
5.4.90.0110.04812.01
5.4.80.0090.03812.02
5.4.70.0050.03712.01
5.4.60.0060.03412.01
5.4.50.0100.03312.01
5.4.40.0080.03412.00
5.4.30.0070.04012.00
5.4.20.0100.04011.99
5.4.10.0050.03712.00
5.4.00.0080.03511.48
5.3.290.0050.04212.80
5.3.280.0100.04712.71
5.3.270.0110.05012.72
5.3.260.0110.05212.72
5.3.250.0060.05912.72
5.3.240.0140.04912.72
5.3.230.0080.04812.71
5.3.220.0110.03812.68
5.3.210.0100.03812.68
5.3.200.0080.03712.68
5.3.190.0090.04412.68
5.3.180.0070.04112.68
5.3.170.0100.03812.67
5.3.160.0060.03812.67
5.3.150.0070.03812.67
5.3.140.0090.03512.66
5.3.130.0080.04112.66
5.3.120.0050.04212.66
5.3.110.0060.04512.66
5.3.100.0070.04212.11
5.3.90.0070.03612.10
5.3.80.0060.04112.09
5.3.70.0070.03712.09
5.3.60.0060.03812.08
5.3.50.0050.03912.03
5.3.40.0060.03812.02
5.3.30.0110.03511.98
5.3.20.0030.04211.78
5.3.10.0050.03611.73
5.3.00.0080.03811.71
5.2.170.0070.0299.21
5.2.160.0070.0319.21
5.2.150.0010.0389.22
5.2.140.0120.0389.21
5.2.130.0100.0379.17
5.2.120.0050.0329.18
5.2.110.0020.0339.18
5.2.100.0040.0329.18
5.2.90.0040.0349.17
5.2.80.0060.0369.17
5.2.70.0050.0329.17
5.2.60.0050.0369.12
5.2.50.0070.0319.09
5.2.40.0060.0339.07
5.2.30.0030.0359.04
5.2.20.0040.0349.04
5.2.10.0050.0308.95
5.2.00.0040.0328.80
5.1.60.0070.0238.09
5.1.50.0050.0278.08
5.1.40.0040.0268.06
5.1.30.0070.0268.42
5.1.20.0070.0298.43
5.1.10.0130.0318.16
5.1.00.0090.0348.16
5.0.50.0080.0256.64
5.0.40.0150.0356.50
5.0.30.0030.0336.31
5.0.20.0040.0216.28
5.0.10.0020.0226.26
5.0.00.0030.0336.25
4.4.90.0040.0174.78
4.4.80.0030.0174.75
4.4.70.0020.0164.75
4.4.60.0040.0154.75
4.4.50.0030.0174.77
4.4.40.0010.0344.71
4.4.30.0040.0154.76
4.4.20.0050.0154.85
4.4.10.0030.0164.85
4.4.00.0040.0264.76
4.3.110.0030.0174.67
4.3.100.0030.0164.67
4.3.90.0030.0164.64
4.3.80.0030.0264.59
4.3.70.0020.0174.63
4.3.60.0080.0294.63
4.3.50.0040.0164.63
4.3.40.0030.0244.54
4.3.30.0040.0153.30
4.3.20.0020.0163.28
4.3.10.0030.0163.24
4.3.00.0130.01713.38

preferences:
52.18 ms | 401 KiB | 5 Q