3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr_orderno = [12321,321,321]; $arr_deliverysn = [7,8,9]; $arr_deliverycorpname = ['asd','qwe','zxc']; $arr_merge = []; for($i = 0; $i < count($arr_orderno); $i++){ $arr_merge[$i] = [$arr_orderno[$i], $arr_deliverysn[$i], $arr_deliverycorpname[$i]]; } $arr_key = ['orderno', 'deliverysn', 'deliverycorpname']; $arr = []; foreach ($arr_merge as $value) { $arr[] = array_combine($arr_key, $value); } print_r($arr);

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.40.0090.00618.71
8.3.30.0040.01118.85
8.3.20.0040.00421.78
8.3.10.0080.00020.41
8.3.00.0040.00423.73
8.2.170.0150.00022.96
8.2.160.0030.01019.46
8.2.150.0030.00524.18
8.2.140.0030.00624.66
8.2.130.0040.00726.16
8.2.120.0080.00018.75
8.2.110.0030.00622.30
8.2.100.0060.00617.91
8.2.90.0040.00417.72
8.2.80.0080.00419.15
8.2.70.0040.00417.63
8.2.60.0040.00417.63
8.2.50.0000.00817.93
8.2.40.0030.00619.35
8.2.30.0040.00419.24
8.2.20.0060.00318.11
8.2.10.0030.00518.14
8.2.00.0000.00717.61
8.1.270.0040.00423.77
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0040.00423.92
8.1.230.0070.00722.59
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.00817.36
8.1.190.0060.00317.54
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0070.00022.12
8.1.150.0040.00418.88
8.1.140.0040.00418.88
8.1.130.0040.00417.60
8.1.120.0050.00317.49
8.1.110.0000.00717.39
8.1.100.0040.00417.48
8.1.90.0070.00517.45
8.1.80.0090.00417.40
8.1.70.0080.00417.38
8.1.60.0090.00417.53
8.1.50.0080.00517.50
8.1.40.0100.00417.54
8.1.30.0110.00317.52
8.1.20.0080.00617.64
8.1.10.0110.00217.45
8.1.00.0070.00617.50
8.0.300.0060.00320.16
8.0.290.0060.00316.63
8.0.280.0000.00718.43
8.0.270.0000.00716.72
8.0.260.0030.00317.30
8.0.250.0050.00316.95
8.0.240.0000.00716.95
8.0.230.0030.00516.94
8.0.220.0050.00516.85
8.0.210.0050.00516.89
8.0.200.0070.00516.91
8.0.190.0040.00716.90
8.0.180.0070.00416.84
8.0.170.0060.00516.90
8.0.160.0020.00816.80
8.0.150.0060.00616.77
8.0.140.0060.00516.74
8.0.130.0070.00315.01
8.0.120.0090.00316.83
8.0.110.0070.00416.91
8.0.100.0080.00216.80
8.0.90.0060.00516.80
8.0.80.0080.00616.85
8.0.70.0000.01116.87
8.0.60.0090.00216.78
8.0.50.0040.00616.89
8.0.30.0110.00717.14
8.0.20.0090.00817.26
8.0.10.0080.00316.96
8.0.00.0070.00616.74
7.4.330.0060.00015.21
7.4.320.0070.00016.50
7.4.300.0050.00816.47
7.4.290.0050.00716.58
7.4.280.0100.00216.45
7.4.270.0060.00516.54
7.4.260.0060.00616.48
7.4.250.0050.00616.44
7.4.240.0050.00516.53
7.4.230.0100.00216.54
7.4.220.0120.00516.52
7.4.210.0090.00716.52
7.4.200.0080.00316.60
7.4.190.0090.00616.64
7.4.180.0110.00416.57
7.4.160.0120.00416.52
7.4.150.0080.00816.91
7.4.140.0110.00817.40
7.4.130.0110.00716.47
7.4.120.0110.00916.51
7.4.110.0100.00716.38
7.4.100.0120.00416.58
7.4.90.0150.00316.51
7.4.80.0080.00817.95
7.4.70.0170.00716.30
7.4.60.0070.00916.45
7.4.50.0110.00416.27
7.4.40.0100.00816.48
7.4.30.0060.01416.44
7.4.20.0080.00516.37
7.4.10.0080.00616.37
7.4.00.0050.01015.68
7.3.330.0090.00114.68
7.3.320.0060.00414.66
7.3.310.0100.00216.18
7.3.300.0080.00316.28
7.3.290.0100.00516.29
7.3.280.0120.00516.33
7.3.270.0100.00616.90
7.3.260.0130.00416.34
7.3.250.0100.00616.45
7.3.240.0090.00916.46
7.3.230.0110.00716.37
7.3.220.0050.01016.16
7.3.210.0110.00516.40
7.3.200.0070.00816.27
7.3.190.0090.01116.28
7.3.180.0110.00516.32
7.3.170.0140.00316.25
7.3.160.0090.00616.33
7.3.150.0070.00716.26
7.3.140.0110.00316.16
7.3.130.0140.00016.09
7.3.120.0070.00716.29
7.3.110.0100.00516.28
7.3.100.0090.00516.14
7.3.90.0070.00716.33
7.3.80.0090.00616.26
7.3.70.0100.00316.32
7.3.60.0000.01316.47
7.3.50.0100.00716.37
7.3.40.0110.00216.49
7.3.30.0100.00516.36
7.3.20.0070.00718.11
7.3.10.0070.00717.14
7.3.00.0110.00317.40
7.2.340.0030.01016.33
7.2.330.0110.00616.55
7.2.320.0130.00516.52
7.2.310.0120.00416.44
7.2.300.0090.00916.50
7.2.290.0110.00516.56
7.2.280.0090.00516.43
7.2.270.0050.00916.46
7.2.260.0150.00016.45
7.2.250.0110.00416.45
7.2.240.0060.00916.43
7.2.230.0070.00716.47
7.2.220.0110.00316.43
7.2.210.0090.00516.33
7.2.200.0100.00516.50
7.2.190.0110.00316.48
7.2.180.0000.01416.47
7.2.170.0070.00716.41
7.2.160.0110.00316.41
7.2.150.0250.00018.54
7.2.140.0200.00318.51
7.2.130.0120.00517.51
7.2.120.0080.00917.52
7.2.110.0100.00717.52
7.2.100.0090.00817.47
7.2.90.0130.00617.68
7.2.80.0130.00717.50
7.2.70.0100.00517.42
7.2.60.0100.00817.37
7.2.50.0170.00217.60
7.2.40.0130.00417.14
7.2.30.0140.00317.59
7.2.20.0150.00317.38
7.2.10.0090.00917.49
7.2.00.0090.00618.30
7.1.330.0050.01017.17
7.1.320.0120.00217.38
7.1.310.0120.00217.33
7.1.300.0150.00017.47
7.1.290.0120.00417.40
7.1.280.0100.00517.37
7.1.270.0150.00017.24
7.1.260.0100.00517.40
7.1.250.0140.00016.23
7.1.240.0080.00817.27
7.1.230.0080.00817.45
7.1.220.0150.00217.19
7.1.210.0080.00917.28
7.1.200.0110.00316.71
7.1.190.0180.00017.25
7.1.180.0090.00617.38
7.1.170.0140.00317.33
7.1.160.0120.00417.22
7.1.150.0050.01017.37
7.1.140.0180.00017.25
7.1.130.0100.00617.25
7.1.120.0160.00017.25
7.1.110.0180.00017.36
7.1.100.0080.00517.74
7.1.90.0140.00317.29
7.1.80.0080.00817.43
7.1.70.0080.00417.05
7.1.60.0140.00117.20
7.1.50.0130.00317.39
7.1.40.0110.00417.12
7.1.30.0140.00417.55
7.1.20.0130.00317.41
7.1.10.0120.00217.32
7.1.00.0100.03819.91
7.0.330.0130.00416.91
7.0.320.0160.00017.01
7.0.310.0100.00516.89
7.0.300.0150.00316.89
7.0.290.0130.00316.89
7.0.280.0110.00416.82
7.0.270.0160.00316.99
7.0.260.0040.01116.97
7.0.250.0100.00517.10
7.0.240.0140.00317.23
7.0.230.0070.00717.12
7.0.220.0080.00816.90
7.0.210.0150.00017.13
7.0.200.0240.00415.90
7.0.190.0060.00917.02
7.0.180.0160.00016.89
7.0.170.0100.00717.17
7.0.160.0110.00416.98
7.0.150.0140.00316.89
7.0.140.0130.00417.15
7.0.130.0130.00317.16
7.0.120.0130.00416.99
7.0.110.0220.03318.56
7.0.100.0200.03218.59
7.0.90.0210.04318.67
7.0.80.0180.03318.52
7.0.70.0250.02718.55
7.0.60.0100.03318.69
7.0.50.0130.03118.57
7.0.40.0140.02918.66
7.0.30.0140.02718.67
7.0.20.0160.02918.49
7.0.10.0180.02518.65
7.0.00.0110.03218.50
5.6.400.0090.00415.64
5.6.390.0100.00315.92
5.6.380.0070.00715.98
5.6.370.0040.00815.88
5.6.360.0130.00215.95
5.6.350.0100.00315.92
5.6.340.0140.00015.82
5.6.330.0050.00715.88
5.6.320.0000.01315.85
5.6.310.0100.00315.96
5.6.300.0070.00615.54
5.6.290.0070.00715.70
5.6.280.0110.00315.79
5.6.270.0140.00015.85
5.6.260.0070.03818.39
5.6.250.0150.02518.43
5.6.240.0180.03818.45
5.6.230.0180.02818.48
5.6.220.0080.03418.56
5.6.210.0020.03818.46
5.6.200.0100.03018.60
5.6.190.0120.03218.52
5.6.180.0160.02318.55
5.6.170.0120.03018.56
5.6.160.0100.03218.45
5.6.150.0120.03818.58
5.6.140.0130.03018.52
5.6.130.0080.03018.49
5.6.120.0060.03418.50
5.6.110.0150.02818.54
5.6.100.0150.03818.51
5.6.90.0120.03018.37
5.6.80.0070.03017.96
5.6.70.0090.03018.17
5.6.60.0070.03318.24
5.6.50.0100.02817.99
5.6.40.0080.03018.16
5.6.30.0080.03118.21
5.6.20.0120.02718.19
5.6.10.0110.02718.21
5.6.00.0130.02318.01

preferences:
53.35 ms | 400 KiB | 5 Q