3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tourAvaibilityDate = array ( 'tour_avaibility' => array ( 'tour_avaibility_location' => array ( 'Location_one' => 'Location_two', 'Location_seven' => 'Location_nine' ), 'tour_avaibility_date' => array ( '02/11/2020' => '02/17/2020', '02/21/2020' => '02/26/2020' ) ) ); $tours = $tourAvaibilityDate['tour_avaibility']; $start_locations = array_keys($tours['tour_avaibility_location']); $end_locations = array_values($tours['tour_avaibility_location']); $start_dates = array_keys($tours['tour_avaibility_date']); $end_dates = array_values($tours['tour_avaibility_date']); $c = count($start_locations); for ($i = 0; $i < $c; $i++) { echo $start_locations[$i] . ' - ' . $end_locations[$i] . "\n"; echo $start_dates[$i] . ' - ' . $end_dates[$i] . "\n"; }

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.20.0040.00418.07
8.4.10.0030.00519.57
8.3.150.0140.00418.29
8.3.140.0040.00416.59
8.3.130.0130.00718.40
8.3.120.0000.00818.82
8.3.110.0180.00020.94
8.3.100.0100.00024.06
8.3.90.0070.00726.77
8.3.80.0090.00016.38
8.3.70.0140.00416.49
8.3.60.0040.01118.18
8.3.50.0090.00624.43
8.3.40.0060.01018.88
8.3.30.0070.00718.70
8.3.20.0040.00420.66
8.3.10.0030.00523.27
8.3.00.0060.00319.69
8.2.270.0160.00318.29
8.2.260.0060.01017.38
8.2.250.0150.00016.57
8.2.240.0050.00317.29
8.2.230.0030.00622.58
8.2.220.0080.00037.54
8.2.210.0050.00326.77
8.2.200.0060.00616.63
8.2.190.0100.01016.63
8.2.180.0140.00718.41
8.2.170.0070.01022.96
8.2.160.0160.00322.15
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0080.00019.67
8.2.110.0060.00321.18
8.2.100.0100.00317.56
8.2.90.0000.00818.03
8.2.80.0090.00017.97
8.2.70.0000.00817.50
8.2.60.0000.00918.04
8.2.50.0000.00918.07
8.2.40.0030.00520.01
8.2.30.0030.00518.20
8.2.20.0040.00418.16
8.2.10.0040.00419.39
8.2.00.0040.00419.25
8.1.310.0040.01116.78
8.1.300.0120.00316.82
8.1.290.0050.00518.88
8.1.280.0000.01425.92
8.1.270.0080.00020.82
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0090.00022.59
8.1.230.0000.01720.60
8.1.220.0040.00417.79
8.1.210.0100.00018.89
8.1.200.0030.00617.35
8.1.190.0030.00517.23
8.1.180.0030.00518.10
8.1.170.0040.00418.64
8.1.160.0070.00018.96
8.1.150.0020.00518.93
8.1.140.0050.00318.99
8.1.130.0070.00020.20
8.1.120.0040.00417.34
8.1.110.0070.00017.50
8.1.100.0070.00017.45
8.1.90.0040.00417.47
8.1.80.0000.00717.48
8.1.70.0040.00417.52
8.1.60.0030.00617.50
8.1.50.0040.00417.52
8.1.40.0030.00517.43
8.1.30.0060.00317.69
8.1.20.0080.00017.69
8.1.10.0030.00517.52
8.1.00.0030.00517.48
8.0.300.0040.00419.93
8.0.290.0050.00316.75
8.0.280.0030.00318.38
8.0.270.0040.00417.93
8.0.260.0060.00020.10
8.0.250.0070.00017.00
8.0.240.0000.00716.86
8.0.230.0000.00716.94
8.0.220.0030.00316.92
8.0.210.0000.00716.89
8.0.200.0030.00316.87
8.0.190.0000.00916.98
8.0.180.0040.00416.91
8.0.170.0030.00616.96
8.0.160.0000.00716.93
8.0.150.0040.00416.84
8.0.140.0030.00316.84
8.0.130.0060.00013.38
8.0.120.0080.00016.82
8.0.110.0000.00716.89
8.0.100.0070.00016.80
8.0.90.0030.00616.71
8.0.80.0050.01416.86
8.0.70.0040.00417.03
8.0.60.0040.00416.79
8.0.50.0000.00816.95
8.0.30.0080.00817.06
8.0.20.0160.00517.38
8.0.10.0000.00817.00
8.0.00.0120.00816.79
7.4.330.0000.00515.55
7.4.320.0070.00016.63
7.4.300.0040.00416.62
7.4.290.0000.00816.47
7.4.280.0030.00616.63
7.4.270.0030.00316.63
7.4.260.0030.00313.29
7.4.250.0030.00316.63
7.4.240.0060.00216.55
7.4.230.0000.00716.68
7.4.220.0000.00716.59
7.4.210.0040.01116.63
7.4.200.0000.00816.60
7.4.130.0130.01016.41
7.4.120.0070.01016.43
7.4.110.0100.00816.58
7.4.100.0080.00816.61
7.4.90.0030.01416.60
7.4.80.0130.00619.39
7.4.70.0100.01016.57
7.4.60.0030.01416.69
7.4.50.0110.00716.55
7.4.40.0070.01016.64
7.4.20.0110.01116.43
7.4.10.0070.01016.53
7.4.00.0030.01716.43
7.3.330.0030.00316.44
7.3.320.0000.00513.22
7.3.310.0030.00316.23
7.3.300.0060.00016.15
7.3.290.0070.01016.28
7.3.280.0170.00416.32
7.3.260.0080.00816.25
7.3.240.0110.00816.38
7.3.230.0120.00916.45
7.3.210.0130.01016.42
7.3.200.0040.01216.47
7.3.190.0130.00416.50
7.3.180.0070.01016.58
7.3.170.0030.01316.57
7.3.160.0090.00616.52
7.3.140.0140.00816.42
7.3.130.0200.00316.34
7.3.120.0120.00916.30
7.3.110.0070.01316.15
7.3.100.0160.00616.27
7.3.90.0160.00616.48
7.3.80.0150.01516.41
7.3.70.0030.01316.38
7.3.60.0070.01016.17
7.3.50.0120.00316.18
7.3.40.0160.00316.31
7.3.30.0130.00316.16
7.3.20.0120.00916.27
7.3.10.0060.01216.35
7.3.00.0080.01516.30
7.2.330.0100.00716.75
7.2.320.0030.01616.37
7.2.310.0040.01316.38
7.2.300.0130.00316.84
7.2.290.0080.00816.86
7.2.270.0140.00316.49
7.2.260.0090.01216.26
7.2.250.0130.00716.56
7.2.240.0100.01316.59
7.2.230.0100.01316.55
7.2.220.0140.00316.54
7.2.210.0060.01216.33
7.2.200.0030.01316.43
7.2.190.0080.00816.46
7.2.180.0150.00916.45
7.2.170.0110.00916.59
7.2.160.0110.00716.57
7.2.150.0090.00916.70
7.2.140.0090.00916.66
7.2.130.0120.00616.58
7.2.120.0070.01116.61
7.2.110.0030.01516.66
7.2.100.0100.01016.71
7.2.90.0100.01016.48
7.2.80.0110.00716.65
7.2.70.0150.00916.70
7.2.60.0100.00916.51
7.2.50.0110.01116.55
7.2.40.0160.00716.63
7.2.30.0090.00916.52
7.2.20.0070.01116.48
7.2.10.0170.00716.66
7.2.00.0160.00716.41

preferences:
29.19 ms | 403 KiB | 5 Q