3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ids = [ 572149922960422, 1586735531587728, 1084479334908663, 9875443331682, 9291002010388, 2108382717199939, 911647002295982, 100222991929377 ]; $names = [ "John Doe", "Jane Doe", "Shawn Smith", "Jack Nickleson", "Brad Pitt", "Chad Kroger", "Angelina Jolie", "Bruce Campell" ]; function customCombine($combined){ $final = []; $i = 0; foreach($combined as $id => $name){ $final[$i]['member_id'] = $id; $final[$i]['member_name'] = $name; $i++; } return $final; } print_r(customCombine(array_combine($ids,$names)));

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.0150.00616.50
8.3.50.0130.00521.11
8.3.40.0090.00618.86
8.3.30.0110.00418.71
8.3.20.0030.00620.41
8.3.10.0070.00021.77
8.3.00.0060.00321.93
8.2.180.0180.00025.92
8.2.170.0110.00722.96
8.2.160.0130.00022.16
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0080.00019.64
8.2.120.0000.00726.35
8.2.110.0080.00020.52
8.2.100.0120.00017.84
8.2.90.0040.00417.75
8.2.80.0000.00818.90
8.2.70.0000.00817.75
8.2.60.0050.00317.93
8.2.50.0060.00318.07
8.2.40.0000.00718.35
8.2.30.0000.00718.03
8.2.20.0040.00418.10
8.2.10.0050.00318.18
8.2.00.0000.00717.74
8.1.280.0100.01025.92
8.1.270.0030.00623.91
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0070.00423.78
8.1.230.0080.00421.00
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0090.00017.34
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0000.00818.59
8.1.160.0070.00018.82
8.1.150.0040.00418.80
8.1.140.0070.00019.45
8.1.130.0050.00317.58
8.1.120.0030.00517.35
8.1.110.0040.00417.46
8.1.100.0040.00417.35
8.1.90.0000.00717.47
8.1.80.0000.00717.45
8.1.70.0040.00417.45
8.1.60.0040.00417.63
8.1.50.0060.00317.38
8.1.40.0080.00017.50
8.1.30.0030.00617.55
8.1.20.0080.00017.61
8.1.10.0000.00917.47
8.1.00.0050.00317.40
8.0.300.0080.00018.77
8.0.290.0060.00316.63
8.0.280.0050.00218.36
8.0.270.0000.00817.13
8.0.260.0060.00017.12
8.0.250.0000.00716.87
8.0.240.0030.00516.85
8.0.230.0030.00317.04
8.0.220.0050.00216.83
8.0.210.0040.00416.93
8.0.200.0030.00316.86
8.0.190.0040.00416.86
8.0.180.0050.00216.88
8.0.170.0040.00416.80
8.0.160.0030.00316.81
8.0.150.0040.00416.80
8.0.140.0000.00716.71
8.0.130.0030.00313.36
8.0.120.0060.00316.84
8.0.110.0080.00016.91
8.0.100.0000.00716.89
8.0.90.0030.00516.89
8.0.80.0090.00616.86
8.0.70.0000.00716.84
8.0.60.0040.00416.79
8.0.50.0000.00716.91
8.0.30.0110.00617.06
8.0.20.0120.00817.40
8.0.10.0000.00717.06
8.0.00.0060.01216.58
7.4.330.0000.00615.55
7.4.320.0000.00616.48
7.4.300.0000.00616.53
7.4.290.0030.00316.62
7.4.280.0040.00416.59
7.4.270.0000.00816.63
7.4.260.0040.00416.50
7.4.250.0000.00716.47
7.4.240.0030.00516.56
7.4.230.0030.00316.56
7.4.220.0090.00916.52
7.4.210.0110.00416.41
7.4.200.0000.00716.35
7.4.160.0080.01016.51
7.4.150.0150.00417.40
7.4.140.0110.01217.86
7.4.130.0090.00816.54
7.4.120.0110.00816.45
7.4.110.0140.00416.57
7.4.100.0120.01216.50
7.4.90.0070.01016.50
7.4.80.0160.00619.39
7.4.70.0070.01016.50
7.4.60.0090.00616.57
7.4.50.0060.00616.45
7.4.40.0130.00316.42
7.4.30.0110.00616.68
7.4.00.0100.00615.05
7.3.330.0000.00513.19
7.3.320.0050.00013.14
7.3.310.0000.00716.25
7.3.300.0000.00716.32
7.3.290.0030.01116.39
7.3.280.0110.00816.33
7.3.270.0000.01817.40
7.3.260.0070.01116.53
7.3.250.0100.00716.50
7.3.240.0090.00816.40
7.3.230.0090.00616.50
7.3.210.0150.00616.49
7.3.200.0070.01016.40
7.3.190.0070.01316.39
7.3.180.0070.01016.58
7.3.170.0070.01016.63
7.3.160.0220.00016.68
7.2.330.0060.01616.74
7.2.320.0100.00716.63
7.2.310.0110.00616.51
7.2.300.0090.01216.62
7.2.290.0140.00316.73
7.2.60.0090.00616.89
7.1.200.0120.00415.82
7.1.70.0040.00417.13
7.1.60.0030.01016.91
7.1.00.0070.07022.33
7.0.200.0040.00814.68
7.0.120.0270.06020.29
7.0.110.0070.07020.27
7.0.100.0200.05020.16
7.0.90.0200.07320.26
7.0.80.0030.06320.30
7.0.70.0130.06020.35
7.0.60.0170.05320.20
7.0.50.0270.07020.25
7.0.40.0370.05720.34
7.0.30.0330.06020.33
7.0.20.0330.06020.34
7.0.10.0470.06320.38
7.0.00.0370.05720.21
5.6.270.0170.06721.06
5.6.260.0200.08721.06
5.6.250.0100.06720.91
5.6.240.0130.06020.86
5.6.230.0030.06720.86
5.6.220.0130.05720.96
5.6.210.0070.06321.01
5.6.200.0170.05720.81
5.6.190.0170.05721.06
5.6.180.0030.06721.04
5.6.170.0100.07320.80
5.6.160.0070.06320.88
5.6.150.0170.06021.05
5.6.140.0100.06320.80
5.6.130.0030.06021.03
5.6.120.0130.05320.74
5.6.110.0230.05321.00
5.6.100.0100.07020.73
5.6.90.0370.04720.87
5.6.80.0270.04020.14
5.6.70.0170.05320.37
5.6.60.0170.05320.23
5.6.50.0130.07720.38
5.6.40.0100.05720.15
5.6.30.0130.05720.43
5.6.20.0100.06320.39
5.6.10.0030.06020.21
5.6.00.0170.05320.19

preferences:
60.36 ms | 401 KiB | 5 Q