3v4l.org

run code in 300+ PHP versions simultaneously
<?php $firstArray = array( array('startDate' => '05-05-2016', 'endDate' => '10-05-2016'), array('startDate' => '05-06-2016', 'endDate' => '10-07-2016'), array('startDate' => '05-08-2016', 'endDate' => '10-11-2016') ); $secondArray = array(array('date' => '07-05-2016'), array('date' => '12-07-2016'), array('date' => '12-11-2016')); function find_match($index){ global $firstArray, $secondArray; foreach($secondArray as $date){ if(strtotime($date['date']) > strtotime($firstArray[$index]['startDate']) && strtotime($date['date']) < strtotime($firstArray[$index]['endDate'])) return $date['date']; } return null; } foreach($firstArray as $key => $st_dates){ $date = find_match($key); echo ($date != null) ? $date : "No match Found."; echo '<br/>'; }

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.70.0150.00318.31
8.3.60.0090.00616.48
8.3.50.0090.01022.07
8.3.40.0090.00618.90
8.3.30.0030.01218.79
8.3.20.0040.00419.29
8.3.10.0080.00021.86
8.3.00.0040.00420.97
8.2.190.0090.00616.75
8.2.180.0120.00618.43
8.2.170.0120.00322.96
8.2.160.0070.00720.38
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00819.58
8.2.110.0080.00019.27
8.2.100.0090.00318.10
8.2.90.0090.00017.88
8.2.80.0060.00317.97
8.2.70.0060.00317.88
8.2.60.0000.00818.05
8.2.50.0000.00818.07
8.2.40.0050.00318.22
8.2.30.0030.00518.21
8.2.20.0030.00517.94
8.2.10.0080.00018.24
8.2.00.0030.00618.20
8.1.280.0160.00625.92
8.1.270.0070.00723.84
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0000.00919.39
8.1.230.0030.00717.95
8.1.220.0050.00317.78
8.1.210.0030.00618.77
8.1.200.0000.01117.60
8.1.190.0090.00017.47
8.1.180.0030.00518.10
8.1.170.0030.00618.89
8.1.160.0040.00419.02
8.1.150.0000.00718.88
8.1.140.0080.00019.67
8.1.130.0000.00717.75
8.1.120.0000.00717.58
8.1.110.0000.00717.70
8.1.100.0000.00817.71
8.1.90.0040.00417.63
8.1.80.0000.00717.70
8.1.70.0030.00317.57
8.1.60.0040.00417.80
8.1.50.0000.00817.63
8.1.40.0030.00617.55
8.1.30.0040.00417.63
8.1.20.0000.00817.70
8.1.10.0050.00317.57
8.1.00.0080.00317.75
8.0.300.0060.00318.77
8.0.290.0100.00017.00
8.0.280.0030.00518.54
8.0.270.0000.00817.31
8.0.260.0000.00617.25
8.0.250.0030.00317.18
8.0.240.0080.00017.18
8.0.230.0000.00717.14
8.0.220.0000.00717.00
8.0.210.0030.00317.11
8.0.200.0060.00317.05
8.0.190.0030.00417.25
8.0.180.0000.00717.02
8.0.170.0050.00317.12
8.0.160.0080.00017.18
8.0.150.0000.00717.15
8.0.140.0040.00417.07
8.0.130.0070.00313.51
8.0.120.0030.00517.07
8.0.110.0040.00416.92
8.0.100.0000.00717.01
8.0.90.0040.00417.17
8.0.80.0100.00617.07
8.0.70.0090.00016.95
8.0.60.0040.00417.16
8.0.50.0000.00717.21
8.0.30.0070.00917.39
8.0.20.0120.00717.40
8.0.10.0050.00217.09
8.0.00.0070.01116.84
7.4.330.0030.00315.08
7.4.320.0060.00016.79
7.4.300.0040.00416.69
7.4.290.0030.00316.75
7.4.280.0050.00216.71
7.4.270.0000.00716.55
7.4.260.0000.00716.66
7.4.250.0030.00316.52
7.4.240.0040.00416.65
7.4.230.0040.00416.68
7.4.220.0070.01416.76
7.4.210.0070.01116.78
7.4.200.0000.00716.65
7.4.160.0080.00816.75
7.4.150.0180.00417.40
7.4.140.0160.00617.86
7.4.130.0090.01216.62
7.4.120.0070.01016.66
7.4.110.0030.01516.94
7.4.100.0070.01016.79
7.4.90.0040.01416.78
7.4.80.0090.00919.39
7.4.70.0030.01616.82
7.4.60.0100.00716.71
7.4.50.0030.01016.71
7.4.40.0100.00716.57
7.4.30.0070.01016.59
7.4.00.0030.01015.25
7.3.330.0060.00013.52
7.3.320.0030.00313.37
7.3.310.0040.00416.53
7.3.300.0000.00716.55
7.3.290.0030.00316.45
7.3.280.0080.00916.50
7.3.270.0160.00717.40
7.3.260.0110.00616.73
7.3.250.0100.01216.73
7.3.240.0090.01116.61
7.3.230.0180.00316.61
7.3.210.0100.00716.86
7.3.200.0110.00716.57
7.3.190.0050.01116.57
7.3.180.0130.00316.74
7.3.170.0100.01316.76
7.3.160.0100.01016.60
7.3.120.0060.01015.11
7.3.110.0070.01014.90
7.3.100.0030.00614.80
7.3.90.0060.00915.01
7.3.80.0040.01115.15
7.3.70.0120.00615.20
7.3.60.0030.01715.04
7.3.50.0060.01314.66
7.3.40.0040.00415.04
7.3.30.0100.00315.08
7.3.20.0000.00916.99
7.3.10.0000.01416.76
7.3.00.0080.00816.83
7.2.330.0150.00316.68
7.2.320.0000.01816.80
7.2.310.0070.01016.96
7.2.300.0090.01216.96
7.2.290.0030.01316.71
7.2.250.0120.00615.48
7.2.240.0100.01015.25
7.2.230.0030.00615.06
7.2.220.0030.00915.34
7.2.210.0040.01115.31
7.2.200.0040.00715.33
7.2.190.0060.00915.09
7.2.180.0080.00615.22
7.2.170.0110.00015.23
7.2.00.0040.01219.52
7.1.330.0060.00915.98
7.1.320.0000.01315.91
7.1.310.0000.00915.81
7.1.300.0040.01115.93
7.1.290.0100.00015.70
7.1.280.0130.00015.71
7.1.270.0070.00316.06
7.1.260.0030.00616.15
7.1.100.0070.00718.31
7.1.70.0040.00717.38
7.1.60.0040.01819.32
7.1.00.0070.07322.34
7.0.200.0090.00615.16
7.0.60.0700.00019.93
7.0.50.1000.00020.23
7.0.40.0970.00020.24
7.0.30.0930.00020.29
7.0.20.0870.00020.30
7.0.10.0730.00020.23
7.0.00.1030.00020.42
5.6.210.0730.00020.56
5.6.200.1100.00021.04
5.6.190.0900.00021.04
5.6.180.0930.00021.03
5.6.170.0830.00021.04
5.6.160.0830.00021.07
5.6.150.0970.00021.07
5.6.140.0970.00021.01
5.6.130.1000.00021.15
5.6.120.0800.00021.20
5.6.110.0870.00021.06
5.6.100.0730.00021.13
5.6.90.0830.00021.02
5.6.80.0930.00020.40
5.6.70.0800.00020.54
5.6.60.0700.00020.45
5.6.50.0900.00020.35
5.6.40.0970.00020.39
5.6.30.0830.00020.39
5.6.20.0870.00020.40
5.6.10.0800.00020.46
5.6.00.0700.00020.51
5.5.350.0730.00020.36
5.5.340.0970.00020.74
5.5.330.0800.00020.87
5.5.320.0870.00020.76
5.5.310.0800.00021.01
5.5.300.0800.00020.86
5.5.290.0830.00020.71
5.5.280.0800.00020.86
5.5.270.0970.00020.80
5.5.260.0730.00020.71
5.5.250.0930.00020.82
5.5.240.0670.00020.38
5.5.230.0930.00020.18
5.5.220.0770.00020.42
5.5.210.0930.00020.20
5.5.200.0870.00020.30
5.5.190.0930.00020.21
5.5.180.0830.00020.30
5.5.160.0700.00020.39
5.5.150.0670.00020.17
5.5.140.1100.00020.30
5.5.130.1070.00020.15
5.5.120.0930.00020.39
5.5.110.0800.00020.33
5.5.100.0970.00020.18
5.5.90.0830.00020.13
5.5.80.0870.00020.08
5.5.70.0870.00020.29
5.5.60.0800.00020.09
5.5.50.0670.00020.06
5.5.40.0670.00020.18
5.5.30.0730.00020.07
5.5.20.0870.00020.07
5.5.10.0870.00020.09
5.5.00.0830.00020.11

preferences:
30.84 ms | 401 KiB | 5 Q