3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array( "name" => "MCLE 201", "date-begin" => "2015-06-29", "date-end" => "2015-06-29" ), array( "name" => "MCLE 201", "date-begin" => "2015-07-29", "date-end" => "2015-07-29" ), array( "name" => "MCLE 201", "date-begin" => "2015-08-29", "date-end" => "2015-08-29" ), array( "name" => "MCLE 201", "date-begin" => "2015-09-29", "date-end" => "2015-09-29" ) ); $postedDateBegin = "2015-06-29"; $postedDateEnd = "2015-08-29"; $filterArray = array(); foreach($arr as $key=>$val){ if(strtotime($val['date-begin']) >= strtotime($postedDateBegin) && strtotime($val['date-end']) <= strtotime($postedDateEnd)){ $filterArray[] = $val; } } echo "<pre>"; print_r($filterArray);

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.5.10.0100.00919.69
8.5.00.0080.01220.31
8.4.150.0020.00014.05
8.4.140.0140.00717.87
8.4.130.0090.01118.99
8.4.120.0060.00324.23
8.4.110.0140.00718.13
8.4.100.0130.00818.11
8.4.90.0100.01020.30
8.4.80.0100.00918.83
8.4.70.0030.00519.13
8.4.60.0120.00820.38
8.4.50.0070.00318.96
8.4.40.0090.00918.13
8.4.30.0070.01419.80
8.4.20.0120.00917.90
8.4.10.0060.01017.79
8.3.280.0150.00920.53
8.3.270.0120.00916.81
8.3.260.0120.00716.82
8.3.250.0100.00719.04
8.3.240.0080.00818.65
8.3.230.0120.00716.59
8.3.220.0050.00219.04
8.3.210.0120.00716.75
8.3.200.0070.00216.77
8.3.190.0040.00417.48
8.3.180.0060.00216.72
8.3.170.0060.01217.06
8.3.160.0090.00916.54
8.3.150.0120.00920.66
8.3.140.0030.00716.86
8.3.130.0040.00418.49
8.3.120.0090.00918.84
8.3.110.0060.00320.94
8.3.100.0040.00424.06
8.3.90.0090.00626.77
8.3.80.0000.01018.81
8.3.70.0130.00616.63
8.3.60.0110.00416.63
8.3.50.0130.00722.11
8.3.40.0070.01118.96
8.3.30.0040.01118.86
8.3.20.0000.00720.17
8.3.10.0080.00021.85
8.3.00.0080.00021.86
8.2.290.0100.00716.67
8.2.280.0110.00418.48
8.2.270.0070.01117.30
8.2.260.0070.00720.09
8.2.250.0130.00316.91
8.2.240.0060.00917.01
8.2.230.0050.00522.58
8.2.220.0060.00337.54
8.2.210.0000.00726.77
8.2.200.0030.00718.88
8.2.190.0060.01216.88
8.2.180.0140.00716.88
8.2.170.0150.00622.96
8.2.160.0000.01419.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00819.76
8.2.110.0040.00420.92
8.2.100.0080.00418.09
8.2.90.0050.00319.34
8.2.80.0050.00318.05
8.2.70.0000.00817.75
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0060.00318.22
8.2.30.0070.00018.18
8.2.20.0030.00618.19
8.2.10.0030.00518.18
8.2.00.0040.00418.38
8.1.330.0110.00722.09
8.1.320.0110.01016.11
8.1.310.0090.00618.69
8.1.300.0100.01018.59
8.1.290.0070.00330.84
8.1.280.0040.01125.92
8.1.270.0050.00224.01
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00622.75
8.1.230.0110.00619.00
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0110.00517.48
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00818.84
8.1.160.0020.00518.96
8.1.150.0000.00720.07
8.1.140.0040.00419.64
8.1.130.0070.00019.14
8.1.120.0030.00317.66
8.1.110.0020.00517.70
8.1.100.0030.00617.57
8.1.90.0070.00017.56
8.1.80.0050.00317.70
8.1.70.0000.00817.70
8.1.60.0030.00617.72
8.1.50.0030.00617.61
8.1.40.0000.00817.65
8.1.30.0040.00417.66
8.1.20.0000.00817.61
8.1.10.0040.00417.68
8.1.00.0000.00817.69
8.0.300.0040.00420.01
8.0.290.0040.00416.88
8.0.280.0000.00718.42
8.0.270.0030.00317.01
8.0.260.0030.00317.23
8.0.250.0030.00317.14
8.0.240.0030.00617.13
8.0.230.0050.00517.12
8.0.220.0030.00417.09
8.0.210.0030.00317.00
8.0.200.0000.00717.19
8.0.190.0000.00917.17
8.0.180.0080.00017.18
8.0.170.0080.00017.12
8.0.160.0000.00717.11
8.0.150.0000.00716.96
8.0.140.0070.00017.07
8.0.130.0060.00013.53
8.0.120.0040.00417.09
8.0.110.0000.00816.98
8.0.100.0040.00416.95
8.0.90.0000.00717.11
8.0.80.0060.00917.13
8.0.70.0070.00017.04
8.0.60.0000.00717.02
8.0.50.0040.00416.98
8.0.30.0070.01217.42
8.0.20.0100.01017.40
8.0.10.0040.00417.20
8.0.00.0070.01016.89
7.4.330.0030.00315.55
7.4.320.0030.00316.78
7.4.300.0000.00616.77
7.4.290.0000.01016.66
7.4.280.0030.00516.58
7.4.270.0000.00716.60
7.4.260.0000.00816.75
7.4.250.0030.00316.70
7.4.240.0070.00016.61
7.4.230.0030.00316.71
7.4.220.0140.00416.79
7.4.210.0110.00416.73
7.4.200.0030.00316.83
7.4.160.0080.00816.67
7.4.150.0070.01117.40
7.4.140.0140.00717.86
7.4.130.0120.00616.70
7.4.120.0130.00816.65
7.4.110.0130.01016.62
7.4.100.0150.00616.57
7.4.90.0000.01716.75
7.4.80.0110.00719.39
7.4.70.0120.00616.75
7.4.60.0100.00616.68
7.4.50.0060.00916.43
7.4.40.0140.00516.80
7.4.30.0170.00616.86
7.4.00.0030.00715.18
7.3.330.0020.00513.27
7.3.320.0030.00313.44
7.3.310.0000.00716.39
7.3.300.0000.00716.45
7.3.290.0070.01116.40
7.3.280.0110.00916.41
7.3.270.0130.00517.40
7.3.260.0090.00916.72
7.3.250.0110.00716.58
7.3.240.0040.01316.67
7.3.230.0130.01016.49
7.3.210.0080.01216.48
7.3.200.0070.01016.61
7.3.190.0060.00916.48
7.3.180.0170.00316.56
7.3.170.0160.00016.64
7.3.160.0060.01516.64
7.3.10.0030.01016.61
7.3.00.0090.00216.92
7.2.330.0040.01216.86
7.2.320.0140.00316.62
7.2.310.0100.00716.96
7.2.300.0100.00916.56
7.2.290.0030.01216.71
7.2.130.0140.00017.08
7.2.120.0060.00617.22
7.2.110.0080.00417.17
7.2.100.0030.00917.13
7.2.90.0070.01017.14
7.2.80.0000.01017.20
7.2.70.0070.00717.02
7.2.60.0060.00817.21
7.2.50.0060.00617.22
7.2.40.0040.00717.22
7.2.30.0060.00617.31
7.2.20.0070.00717.11
7.2.10.0030.00916.85
7.2.00.0030.00616.87
7.1.250.0000.01015.97
7.1.200.0110.00416.12
7.1.70.0060.00617.52
7.1.60.0070.01017.38
7.1.30.2700.05736.38
7.1.20.2170.05036.45
7.1.10.2730.07320.32
7.1.00.2300.06320.73
7.0.200.0120.00616.96
7.0.170.2070.08020.02
7.0.160.2230.06020.06
7.0.150.2700.07720.04
7.0.140.1430.06020.09
7.0.130.1600.06320.08
7.0.120.2630.07320.12
7.0.110.2370.06720.07
7.0.100.1730.06320.09
7.0.90.2200.06020.13
7.0.80.1870.10720.02
7.0.70.2200.06720.01
7.0.60.1330.06020.08
7.0.50.1900.07020.11
7.0.40.1800.06720.06
7.0.30.1930.05720.18
7.0.20.1870.04720.08
7.0.10.1600.06020.05
7.0.00.2030.07320.09

preferences:
34.26 ms | 403 KiB | 5 Q