3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [10, 20, 30, 40]; $arr2 = [10, 20, 30, 40]; $result = array_map('array_sum', array_map(null, $arr, $arr2)); print_r($result);

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.4.140.0140.00717.39
8.4.130.0140.00417.75
8.4.120.0110.00822.36
8.4.110.0100.00918.66
8.4.100.0120.00818.86
8.4.90.0070.00320.61
8.4.80.0110.00917.74
8.4.70.0080.01017.84
8.4.60.0090.01018.68
8.4.50.0110.00918.43
8.4.40.0130.00617.48
8.4.30.0130.00720.45
8.4.20.0070.01417.61
8.4.10.0130.00619.63
8.3.270.0130.00816.28
8.3.260.0140.00516.66
8.3.250.0090.00919.00
8.3.240.0080.01016.39
8.3.230.0120.00616.46
8.3.220.0090.01018.87
8.3.210.0130.00616.65
8.3.200.0060.00316.30
8.3.190.0120.00716.79
8.3.180.0040.00416.42
8.3.170.0120.00617.00
8.3.160.0030.01418.20
8.3.150.0000.00816.50
8.3.140.0100.00018.46
8.3.130.0090.00618.25
8.3.120.0150.00020.88
8.3.110.0080.00020.94
8.3.100.0060.00324.06
8.3.90.0060.00326.77
8.3.80.0060.00316.50
8.3.70.0080.01116.58
8.3.60.0080.00818.31
8.3.50.0130.00516.14
8.3.40.0170.00018.52
8.3.30.0040.01118.69
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.290.0060.00719.04
8.2.280.0090.00916.58
8.2.270.0080.00018.40
8.2.260.0070.01016.99
8.2.250.0120.00818.21
8.2.240.0060.00317.05
8.2.230.0030.00622.58
8.2.220.0030.00637.54
8.2.210.0000.00826.77
8.2.200.0000.00818.29
8.2.190.0120.00916.58
8.2.180.0110.00425.92
8.2.170.0040.01118.79
8.2.160.0040.01122.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.64
8.2.110.0030.00622.13
8.2.100.0030.00917.78
8.2.90.0060.00317.50
8.2.80.0050.00318.84
8.2.70.0050.00517.13
8.2.60.0040.00417.91
8.2.50.0030.00518.07
8.2.40.0060.00319.73
8.2.30.0060.00317.99
8.2.20.0080.00218.12
8.2.10.0040.00618.58
8.2.00.0080.00318.49
8.1.330.0140.00416.03
8.1.320.0120.00715.81
8.1.310.0100.00718.31
8.1.300.0040.00418.45
8.1.290.0030.00630.84
8.1.280.0120.00925.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0040.00720.53
8.1.230.0070.00417.76
8.1.220.0050.00217.74
8.1.210.0030.00518.77
8.1.200.0050.00517.35
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0050.00218.77
8.1.160.0080.00018.80
8.1.150.0060.00518.22
8.1.140.0090.00218.23
8.1.130.0050.00517.74
8.1.120.0030.00617.77
8.1.110.0060.00417.77
8.1.100.0080.00217.79
8.1.90.0070.00417.81
8.1.80.0090.00217.77
8.1.70.0040.00717.76
8.1.60.0050.00717.88
8.1.50.0050.00617.86
8.1.40.0060.00617.87
8.1.30.0060.00618.00
8.1.20.0090.00317.89
8.1.10.0060.00417.81
8.1.00.0050.00617.75
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00618.27
8.0.270.0060.00317.50
8.0.260.0070.00218.36
8.0.250.0060.00417.14
8.0.240.0030.00517.18
8.0.230.0020.00517.20
8.0.220.0040.00317.12
8.0.210.0020.00517.13
8.0.200.0060.00217.13
8.0.190.0040.00417.15
8.0.180.0060.00217.06
8.0.170.0050.00317.17
8.0.160.0060.00217.15
8.0.150.0060.00217.10
8.0.140.0060.00317.12
8.0.130.0050.00315.93
8.0.120.0050.00417.09
8.0.110.0050.00317.16
8.0.100.0040.00417.17
8.0.90.0030.00617.09
8.0.80.0060.00617.02
8.0.70.0060.00217.13
8.0.60.0020.00517.09
8.0.50.0010.00617.09
8.0.30.0060.00717.18
8.0.20.0040.00617.28
8.0.10.0040.00717.25
8.0.00.0100.00317.93
7.4.330.0080.00216.14
7.4.320.0110.00316.82
7.4.300.0150.00216.81
7.4.290.0090.00516.75
7.4.280.0110.00216.86
7.4.270.0070.00616.81
7.4.260.0120.00216.80
7.4.250.0080.00516.83
7.4.240.0080.00416.74
7.4.230.0110.00216.75
7.4.220.0080.00216.62
7.4.210.0060.00816.72
7.4.200.0040.00716.80
7.4.190.0100.00517.05
7.4.180.0050.00916.97
7.4.160.0100.00416.81
7.4.150.0080.01016.85
7.4.140.0070.00716.73
7.4.130.0080.00616.68
7.4.120.0090.00516.82
7.4.110.0100.00516.66
7.4.100.0100.00616.84
7.4.90.0110.00616.72
7.4.80.0120.00316.75
7.4.70.0120.00416.74
7.4.60.0080.00716.74
7.4.50.0120.00316.72
7.4.40.0090.00716.71
7.4.30.0100.00616.77
7.4.20.0080.00716.76
7.4.10.0110.00516.73
7.4.00.0120.00216.78
7.3.330.0050.00716.57
7.3.320.0070.00415.61
7.3.310.0080.00416.62
7.3.300.0080.00416.54
7.3.290.0060.00816.40
7.3.280.0100.00416.81
7.3.270.0080.00616.70
7.3.260.0110.00316.63
7.3.250.0090.00516.57
7.3.240.0080.00616.64
7.3.230.0080.00816.54
7.3.220.0090.00516.56
7.3.210.0070.00816.72
7.3.200.0110.00316.63
7.3.190.0120.00216.60
7.3.180.0100.00416.57
7.3.170.0090.00516.62
7.3.160.0090.00716.64
7.3.150.0110.00316.60
7.3.140.0150.00116.62
7.3.130.0100.00516.60
7.3.120.0090.00416.63
7.3.110.0100.00616.56
7.3.100.0090.00816.67
7.3.90.0110.00416.82
7.3.80.0100.00416.53
7.3.70.0140.00216.73
7.3.60.0120.00216.61
7.3.50.0130.00316.75
7.3.40.0130.00116.63
7.3.30.0080.00616.68
7.3.20.0160.00117.74
7.3.10.0150.00117.70
7.3.00.0500.00817.70

preferences:
32.34 ms | 403 KiB | 5 Q