3v4l.org

run code in 300+ PHP versions simultaneously
<?php $orders = array ( 0 => array ( 'order_id' => 45145, 'customers_email_address' => 'test@test.com', 'customers_name' => 'testname' ), 1 => array ( 'order_id' => 45136, 'customers_email_address' => 'test@yahoo.com', 'customers_name' => 'testname' ), 2 => array ( 'order_id' => 45117, 'customers_email_address' => 'test@yahoo.com', 'customers_name' => 'testname' ), 3 => array ( 'order_id' => 44959, 'customers_email_address' => 'test@gmail.com', 'customers_name' => 'testname' ), 4 => array ( 'order_id' => 44938, 'customers_email_address' => 'test@hotmail.com', 'customers_name' => 't' ) ); $chitchattracking = array ( 1 => array ( 'order_id' => 44938, 'carrier_tracking_code' => 9205590221582717655498 ), 2 => array ( 'order_id' => 44854, 'carrier_tracking_code' => 92055902215827 ) ); $tracking = array(); $chitchat = array_column($chitchattracking, null, 'order_id'); foreach ($orders as $order) { $order_id = $order['order_id']; if (isset($chitchat[$order_id])) { $tracking[] = array_merge($order, $chitchat[$order_id]); } } print_r($tracking);

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.150.0010.00114.05
8.4.140.0140.00617.41
8.4.130.0040.00517.88
8.4.120.0120.00820.58
8.4.110.0120.00919.01
8.4.100.0150.00517.89
8.4.90.0120.00917.66
8.4.80.0110.00817.79
8.4.70.0110.00719.62
8.4.60.0060.00318.91
8.4.50.0110.00718.37
8.4.40.0090.00317.37
8.4.30.0040.01520.39
8.4.20.0150.00617.89
8.4.10.0080.00820.75
8.3.270.0060.01316.70
8.3.260.0130.00616.65
8.3.250.0100.00718.95
8.3.240.0010.00816.74
8.3.230.0130.00716.89
8.3.220.0120.00717.15
8.3.210.0080.01216.87
8.3.200.0030.00616.65
8.3.190.0050.01217.10
8.3.180.0130.00418.83
8.3.170.0130.00716.49
8.3.160.0100.00717.08
8.3.150.0060.01219.17
8.3.140.0150.00420.91
8.3.130.0050.00318.35
8.3.120.0050.00318.88
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0060.00318.43
8.3.70.0000.01816.72
8.3.60.0070.01416.63
8.3.50.0170.00423.71
8.3.40.0030.01322.03
8.3.30.0060.00918.54
8.3.20.0030.00524.18
8.3.10.0040.01124.66
8.3.00.0040.00426.16
8.2.290.0110.00820.56
8.2.280.0110.00818.22
8.2.270.0040.00422.18
8.2.260.0140.00316.51
8.2.250.0080.00016.90
8.2.240.0040.00419.04
8.2.230.0070.00322.58
8.2.220.0030.00637.54
8.2.210.0110.00726.77
8.2.200.0030.00620.17
8.2.190.0150.00916.58
8.2.180.0180.00025.92
8.2.170.0000.01418.91
8.2.160.0100.00322.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.49
8.2.110.0030.00620.41
8.2.100.0030.00718.15
8.2.90.0040.00418.33
8.2.80.0080.00017.97
8.2.70.0030.00518.05
8.2.60.0050.00517.93
8.2.50.0040.00418.10
8.2.40.0080.00019.91
8.2.30.0040.00418.18
8.2.20.0040.00418.19
8.2.10.0020.00519.19
8.2.00.0090.00019.28
8.1.330.0110.00816.83
8.1.320.0080.01016.36
8.1.310.0090.00016.56
8.1.300.0030.00516.53
8.1.290.0060.00318.88
8.1.280.0100.00625.92
8.1.270.0030.00623.85
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00920.29
8.1.230.0040.00720.90
8.1.220.0000.00817.78
8.1.210.0080.00018.77
8.1.200.0090.00017.35
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0030.00518.24
8.1.160.0050.00318.82
8.1.150.0000.00718.77
8.1.140.0040.00418.89
8.1.130.0030.00317.37
8.1.120.0070.00017.43
8.1.110.0060.00317.45
8.1.100.0050.00217.36
8.1.90.0080.00417.38
8.1.80.0070.00017.45
8.1.70.0000.00717.36
8.1.60.0030.00717.45
8.1.50.0080.00017.43
8.1.40.0000.00717.57
8.1.30.0030.00717.66
8.1.20.0040.00417.61
8.1.10.0040.00417.54
8.1.00.0040.00817.28
8.0.300.0030.00521.52
8.0.290.0020.00516.63
8.0.280.0000.00718.45
8.0.270.0000.00718.00
8.0.260.0060.00316.81
8.0.250.0000.00716.95
8.0.240.0000.00716.98
8.0.230.0000.00716.83
8.0.220.0040.00416.89
8.0.210.0040.00416.89
8.0.200.0000.00716.96
8.0.190.0080.00016.95
8.0.180.0040.00416.88
8.0.170.0030.00616.80
8.0.160.0040.00416.98
8.0.150.0030.00316.79
8.0.140.0040.00316.73
8.0.130.0030.00313.33
8.0.120.0040.00416.84
8.0.110.0050.00216.84
8.0.100.0000.00816.71
8.0.90.0040.00316.80
8.0.80.0080.00816.87
8.0.70.0070.00016.88
8.0.60.0000.00716.94
8.0.50.0000.00716.72
8.0.30.0030.01317.06
8.0.20.0090.00917.05
8.0.10.0000.00717.08
8.0.00.0030.01516.71
7.4.330.0000.00515.55
7.4.320.0000.00616.65
7.4.300.0000.00716.63
7.4.290.0060.00016.55
7.4.280.0040.00416.45
7.4.270.0020.00516.61
7.4.260.0000.00513.22
7.4.250.0030.00316.48
7.4.240.0000.00716.58
7.4.230.0050.00516.72
7.4.220.0070.00016.25
7.4.210.0050.01016.61
7.4.200.0000.00816.70
7.4.130.0130.00816.55
7.4.120.0070.01116.57
7.4.110.0140.00416.40
7.4.100.0070.01016.55
7.4.90.0060.01216.47
7.4.80.0120.00616.45
7.4.70.0100.00716.54
7.4.60.0100.00716.44
7.4.50.0100.00716.41
7.4.40.0060.00916.22
7.4.30.0110.00616.32
7.4.20.0110.00816.34
7.4.10.0060.01216.45
7.4.00.0170.00016.43
7.3.330.0040.00416.36
7.3.320.0030.00313.17
7.3.310.0000.00716.38
7.3.300.0030.00316.30
7.3.290.0070.00816.24
7.3.260.0130.00316.34
7.3.230.0050.01216.32
7.3.220.0110.00516.55
7.3.210.0080.01116.42
7.3.200.0070.01116.68
7.3.190.0090.00916.26
7.3.180.0080.01616.50
7.3.170.0110.00816.41
7.3.160.0100.00716.26
7.3.150.0070.01116.34
7.3.140.0110.00716.26
7.3.130.0110.00615.99
7.3.120.0110.00616.28
7.3.110.0060.01016.52
7.3.100.0080.00816.34
7.3.90.0060.00916.25
7.3.80.0120.00616.24
7.3.70.0140.00316.23
7.3.60.0040.01216.46
7.3.50.0100.00716.28
7.3.40.0080.00916.48
7.3.30.0100.00716.38
7.3.20.0150.00616.25
7.3.10.0030.01416.21
7.3.00.0150.00316.36
7.2.340.0060.01516.43
7.2.330.0080.00816.43
7.2.320.0070.01016.39
7.2.310.0060.01216.58
7.2.300.0160.00416.60
7.2.290.0030.01516.63
7.2.280.0170.00016.35
7.2.270.0060.01216.61
7.2.260.0150.00316.36
7.2.250.0170.00016.54
7.2.240.0120.00916.52
7.2.230.0030.01316.74
7.2.220.0050.01316.77
7.2.210.0070.01116.35
7.2.200.0090.00916.64
7.2.190.0110.00716.61
7.2.180.0050.01416.56
7.2.170.0130.00916.62
7.2.160.0150.00316.52
7.2.150.0180.00616.46
7.2.140.0130.00416.52
7.2.130.0090.01316.48
7.2.120.0110.01116.59
7.2.110.0030.01516.46
7.2.100.0060.01216.81
7.2.90.0140.00416.50
7.2.80.0090.00916.69
7.2.70.0100.01016.47
7.2.60.0140.00316.61
7.2.50.0190.00616.60
7.2.40.0090.00916.80
7.2.30.0030.01616.78
7.2.20.0080.01116.70
7.2.10.0060.01216.66
7.2.00.0150.00916.71

preferences:
144.12 ms | 403 KiB | 5 Q