3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [1, 2, 3, 4]; $arr2 = [10, 20, 30, 40]; $arr3 = [100, 200, 300, 400]; $result = array_map(fn(... $i) => array_sum($i), $arr1, $arr2, $arr3); 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.120.0140.00620.55
8.4.110.0060.00418.68
8.4.100.0080.01118.61
8.4.90.0140.00520.69
8.4.80.0100.00919.43
8.4.70.0140.00517.75
8.4.60.0050.00418.92
8.4.50.0110.01019.54
8.4.40.0100.01017.64
8.4.30.0100.00020.57
8.4.20.0050.00517.79
8.4.10.0120.00319.49
8.3.250.0130.00619.13
8.3.240.0120.00818.96
8.3.230.0120.00716.81
8.3.220.0140.00419.19
8.3.210.0120.00816.53
8.3.200.0070.00416.61
8.3.190.0140.00716.39
8.3.180.0130.00618.95
8.3.170.0070.00316.75
8.3.160.0150.00016.71
8.3.150.0150.00317.10
8.3.140.0060.00317.35
8.3.130.0050.00518.44
8.3.120.0060.00318.85
8.3.110.0030.00620.94
8.3.100.0090.00016.52
8.3.90.0040.00420.05
8.3.80.0030.00719.36
8.3.70.0070.01416.58
8.3.60.0070.01118.30
8.3.50.0130.00717.33
8.3.40.0070.01318.68
8.3.30.0040.01118.59
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0060.00326.16
8.2.290.0110.00618.96
8.2.280.0120.00616.68
8.2.270.0060.01016.69
8.2.260.0030.00618.65
8.2.250.0080.00016.62
8.2.240.0040.00418.95
8.2.230.0050.00222.58
8.2.220.0040.01124.06
8.2.210.0130.00426.77
8.2.200.0060.00318.88
8.2.190.0170.00318.41
8.2.180.0120.00625.92
8.2.170.0120.00618.92
8.2.160.0030.01022.96
8.2.150.0050.00325.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00020.98
8.2.110.0060.00322.13
8.2.100.0110.00017.72
8.2.90.0060.00317.84
8.2.80.0080.00018.94
8.2.70.0030.00517.75
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0090.00018.22
8.2.30.0000.00818.07
8.2.20.0000.00718.09
8.2.10.0040.00419.19
8.2.00.0040.00419.34
8.1.330.0110.00815.85
8.1.320.0120.00716.02
8.1.310.0080.00618.48
8.1.300.0030.00618.47
8.1.290.0120.00030.84
8.1.280.0070.01025.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00022.46
8.1.230.0080.00322.88
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0070.00418.55
8.1.160.0040.00418.99
8.1.150.0030.00518.81
8.1.140.0040.00418.88
8.1.130.0030.00320.11
8.1.120.0080.00017.46
8.1.110.0000.00717.32
8.1.100.0070.00017.49
8.1.90.0040.00417.51
8.1.80.0000.00817.45
8.1.70.0000.00717.34
8.1.60.0040.00417.49
8.1.50.0030.00617.50
8.1.40.0060.00317.50
8.1.30.0000.00717.52
8.1.20.0030.00517.53
8.1.10.0050.00317.53
8.1.00.0030.00617.44
8.0.300.0000.00720.08
8.0.290.0050.00316.63
8.0.280.0030.00318.42
8.0.270.0030.00317.91
8.0.260.0040.00418.37
8.0.250.0000.00816.87
8.0.240.0030.00316.74
8.0.230.0000.00716.77
8.0.220.0030.00316.81
8.0.210.0030.00516.70
8.0.200.0000.00716.95
8.0.190.0070.00016.93
8.0.180.0000.00816.93
8.0.170.0060.00316.90
8.0.160.0000.00716.93
8.0.150.0040.00416.80
8.0.140.0000.01116.79
8.0.130.0000.00513.30
8.0.120.0030.00516.85
8.0.110.0040.00416.81
8.0.100.0040.00416.75
8.0.90.0030.00616.89
8.0.80.0090.00916.87
8.0.70.0000.00716.73
8.0.60.0040.00416.81
8.0.50.0040.00416.76
8.0.30.0070.01717.01
8.0.20.0130.00817.20
8.0.10.0060.01216.86
8.0.00.0060.01317.30
7.4.330.0000.00515.55
7.4.320.0000.00616.61
7.4.300.0000.00716.62
7.4.290.0070.00016.55
7.4.280.0000.00716.59
7.4.270.0030.00316.45
7.4.260.0000.00513.37
7.4.250.0070.00016.44
7.4.240.0070.00016.45
7.4.230.0030.00516.39
7.4.220.0040.00416.49
7.4.210.0090.00816.50
7.4.200.0000.00716.49
7.4.160.0140.00316.36
7.4.150.0110.01116.34
7.4.140.0080.00816.28
7.4.130.0120.00516.55
7.4.120.0070.00716.55
7.4.110.0050.00916.27
7.4.100.0120.00316.41
7.4.90.0140.00416.38
7.4.80.0100.01016.37
7.4.70.0030.01316.43
7.4.60.0150.00016.45
7.4.50.0040.01216.56
7.4.40.0150.00916.48
7.4.30.0090.01216.34
7.4.20.0110.00716.36
7.4.10.0070.00716.38
7.4.00.0090.00916.48
7.3.330.0040.00416.09
7.3.320.0060.00013.23
7.3.310.0000.00616.26
7.3.300.0000.00616.02
7.3.290.0020.01216.18
7.3.270.0150.00316.15
7.3.260.0040.01416.31
7.3.250.0130.00616.20
7.3.240.0110.01116.37
7.3.230.0050.00916.25
7.3.220.0040.01116.13
7.3.210.0110.00816.30
7.3.200.0110.00516.23
7.3.190.0070.00716.43
7.3.180.0070.01016.26
7.3.170.0090.00616.07
7.3.160.0000.01616.20
7.3.150.0120.00416.20
7.3.140.0160.00716.11
7.3.130.0060.00916.16
7.3.120.0040.00916.13
7.3.110.0060.01216.17
7.3.100.0060.00616.21
7.3.90.0080.00616.09
7.3.80.0070.01016.40
7.3.70.0110.00616.12
7.3.60.0140.00016.06
7.3.50.0100.00716.20
7.3.40.0000.01315.98
7.3.30.0100.01016.07
7.3.20.0070.01316.33
7.3.10.0070.00716.07
7.3.00.0100.00716.29

preferences:
116.95 ms | 403 KiB | 5 Q