3v4l.org

run code in 300+ PHP versions simultaneously
<?php function is_today() { $date_array = array( '29-10-2018', '4-11-2018', '25-11-2018', '2-12-2018', '16-12-2018', '23-12-2018', '30-12-2018', '27-01-2019', '24-02-2019', '31-03-2019', '14-04-2019', '28-04-2019', '26-05-2019', '30-06-2019', '28-07-2019', '25-08-2019', '29-09-2019', '27-10-2019', '24-11-2019', '15-12-2019', '22-12-2019', '29-12-2019' ); $now = new DateTime("now"); // foreach($date_array as $date) { $match_date = new DateTime($date); $interval = $now->diff($match_date); if($interval->hours == 0) { return true; break; } else { return false; } } }

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.60.0110.00718.18
8.3.50.0040.01817.91
8.3.40.0040.01118.49
8.3.30.0090.00618.68
8.3.20.0070.00019.27
8.3.10.0040.00421.74
8.3.00.0080.00020.64
8.2.180.0160.00316.50
8.2.170.0070.00722.96
8.2.160.0100.01022.11
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00018.09
8.2.120.0050.00326.35
8.2.110.0090.00019.07
8.2.100.0060.00617.97
8.2.90.0080.00017.63
8.2.80.0000.00719.00
8.2.70.0030.00617.80
8.2.60.0070.00017.97
8.2.50.0040.00418.10
8.2.40.0020.00519.26
8.2.30.0000.00819.18
8.2.20.0040.00417.92
8.2.10.0070.00017.94
8.2.00.0040.00417.52
8.1.280.0160.00325.92
8.1.270.0040.00418.73
8.1.260.0020.00526.35
8.1.250.0040.00428.09
8.1.240.0120.00020.31
8.1.230.0090.00318.96
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.11
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0040.00418.77
8.1.150.0050.00318.72
8.1.140.0080.00022.10
8.1.130.0030.00320.30
8.1.120.0070.00017.25
8.1.110.0040.00417.35
8.1.100.0040.00417.32
8.1.90.0040.00417.35
8.1.80.0000.00717.31
8.1.70.0000.00717.26
8.1.60.0030.00617.42
8.1.50.0000.00717.29
8.1.40.0080.00017.38
8.1.30.0050.00317.62
8.1.20.0030.00617.48
8.1.10.0020.00617.31
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0080.00316.58
8.0.280.0000.00718.32
8.0.270.0000.00717.15
8.0.260.0000.00718.33
8.0.250.0030.00316.73
8.0.240.0000.00716.79
8.0.230.0000.00716.76
8.0.220.0080.00016.83
8.0.210.0000.00816.67
8.0.200.0030.00316.84
8.0.190.0040.00416.83
8.0.180.0040.00416.70
8.0.170.0080.00016.82
8.0.160.0070.00016.72
8.0.150.0050.00316.69
8.0.140.0040.00416.71
8.0.130.0000.00613.18
8.0.120.0080.00016.71
8.0.110.0040.00416.67
8.0.100.0050.00316.66
8.0.90.0070.00016.80
8.0.80.0090.00716.80
8.0.70.0000.00716.65
8.0.60.0000.00716.83
8.0.50.0000.00716.64
8.0.30.0160.00316.76
8.0.20.0070.01117.40
8.0.10.0040.00416.85
8.0.00.0070.01016.59
7.4.330.0000.00415.55
7.4.320.0030.00316.52
7.4.300.0040.00416.28
7.4.290.0000.00616.50
7.4.280.0000.00816.37
7.4.270.0030.00316.32
7.4.260.0000.00816.29
7.4.250.0040.00416.33
7.4.240.0030.00316.37
7.4.230.0030.00316.29
7.4.220.0090.00016.39
7.4.210.0090.00716.45
7.4.200.0030.00316.36
7.4.160.0090.00816.27
7.4.140.0130.00717.86
7.4.130.0000.01816.19
7.4.120.0080.01116.30
7.4.110.0070.01016.34
7.4.100.0100.00716.42
7.4.90.0070.01016.39
7.4.80.0090.00919.39
7.4.70.0130.01016.52
7.4.60.0160.00716.54
7.4.50.0000.01516.22
7.4.40.0100.01316.33
7.3.330.0030.00313.04
7.3.320.0000.00613.04
7.3.310.0040.00416.21
7.3.300.0000.00716.12
7.3.290.0030.00316.17
7.3.280.0060.01016.15
7.3.260.0120.00816.30
7.3.240.0080.01016.32
7.3.230.0140.00316.08
7.3.210.0070.01116.40
7.3.200.0090.00916.48
7.3.190.0130.00816.13
7.3.180.0150.00616.27
7.3.170.0170.00316.15
7.3.160.0030.01316.23
7.2.330.0090.01216.24
7.2.320.0100.00716.55
7.2.310.0180.00316.18
7.2.300.0030.01416.28
7.2.290.0100.00516.45

preferences:
36.5 ms | 401 KiB | 5 Q