3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime('2016-01-10 23:30:59'); $start = new DateTime('saturday this week 15:00'); $end = new DateTime('monday next week 08:00'); $departure = new DateTime('2016-01-11 23:30:59'); $diff = (strtotime($departure->format('Y-m-d H:i:s')) - strtotime($now->format('Y-m-d H:i:s')))/3600; echo $diff . PHP_EOL;; echo $now->format('Y-m-d H:i:s'). PHP_EOL; echo $start->format('Y-m-d H:i:s'). PHP_EOL; echo $end->format('Y-m-d H:i:s'). PHP_EOL; if ($now > $start && $now < $end && $diff <= 72) { echo 'Error! Please contact administrator!'; }

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.0100.01016.75
8.3.50.0130.00821.15
8.3.40.0090.00618.96
8.3.30.0060.00918.82
8.3.20.0070.00020.16
8.3.10.0050.00323.57
8.3.00.0050.00323.61
8.2.180.0090.00916.88
8.2.170.0140.00422.96
8.2.160.0070.00719.41
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.18
8.2.120.0100.00326.35
8.2.110.0090.00019.22
8.2.100.0090.00318.16
8.2.90.0030.00619.38
8.2.80.0050.00317.97
8.2.70.0050.00517.88
8.2.60.0050.00318.05
8.2.50.0060.00318.09
8.2.40.0040.00422.31
8.2.30.0050.00219.61
8.2.20.0030.00517.86
8.2.10.0040.00418.25
8.2.00.0040.00418.24
8.1.280.0040.01525.92
8.1.270.0090.00922.18
8.1.260.0060.00328.09
8.1.250.0070.00028.09
8.1.240.0090.00022.42
8.1.230.0120.00017.89
8.1.220.0050.00317.79
8.1.210.0030.00518.77
8.1.200.0060.00317.48
8.1.190.0040.00417.46
8.1.180.0030.00618.10
8.1.170.0030.00518.81
8.1.160.0040.00420.81
8.1.150.0000.00718.97
8.1.140.0000.00819.62
8.1.130.0030.00317.76
8.1.120.0000.00717.73
8.1.110.0000.00817.73
8.1.100.0090.00017.66
8.1.90.0000.00817.68
8.1.80.0020.00517.73
8.1.70.0050.00317.74
8.1.60.0000.00717.74
8.1.50.0000.01017.59
8.1.40.0000.00817.64
8.1.30.0040.00417.79
8.1.20.0000.00817.88
8.1.10.0060.00317.81
8.1.00.0030.01017.77
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0030.00318.63
8.0.270.0070.00017.45
8.0.260.0000.00717.45
8.0.250.0000.00817.22
8.0.240.0040.00417.19
8.0.230.0000.00717.22
8.0.220.0000.00717.18
8.0.210.0040.00417.09
8.0.200.0030.00317.11
8.0.190.0050.00317.13
8.0.180.0000.00717.11
8.0.170.0050.00317.20
8.0.160.0000.00817.12
8.0.150.0040.00417.07
8.0.140.0040.00417.11
8.0.130.0060.00013.54
8.0.120.0030.00517.02
8.0.110.0040.00417.17
8.0.100.0040.00417.25
8.0.90.0040.00417.17
8.0.80.0040.01117.12
8.0.70.0040.00417.03
8.0.60.0040.00417.05
8.0.50.0040.00417.04
8.0.30.0150.00817.32
8.0.20.0110.00717.48
8.0.10.0070.00017.12
8.0.00.0130.00517.02
7.4.330.0000.00616.77
7.4.320.0000.00616.74
7.4.300.0000.00716.87
7.4.290.0000.00616.79
7.4.280.0080.00016.74
7.4.270.0040.00416.74
7.4.260.0030.00316.69
7.4.250.0050.00316.66
7.4.240.0040.00416.57
7.4.230.0070.00016.83
7.4.220.0040.02116.76
7.4.210.0050.00916.66
7.4.200.0040.00416.57
7.4.160.0160.00016.61
7.4.150.0120.00617.40
7.4.140.0110.01417.86
7.4.130.0060.01116.64
7.4.120.0060.01416.65
7.4.110.0110.00616.80
7.4.100.0070.01716.71
7.4.90.0140.00316.80
7.4.80.0060.01219.39
7.4.70.0120.00416.80
7.4.60.0060.01016.74
7.4.50.0070.00416.87
7.4.40.0100.01016.63
7.4.30.0200.00716.66
7.4.00.0030.01315.39
7.3.330.0000.00513.23
7.3.320.0000.00713.30
7.3.310.0000.00716.30
7.3.300.0030.00316.48
7.3.290.0080.00716.49
7.3.280.0080.00916.52
7.3.270.0130.00317.40
7.3.260.0120.00616.52
7.3.250.0110.00716.65
7.3.240.0090.00916.85
7.3.230.0070.01016.57
7.3.210.0100.00616.54
7.3.200.0090.00919.39
7.3.190.0070.01016.39
7.3.180.0100.00716.42
7.3.170.0070.01016.79
7.3.160.0100.00616.62
7.3.10.0080.00616.81
7.3.00.0000.01316.91
7.2.330.0070.01116.89
7.2.320.0030.01516.79
7.2.310.0030.01316.87
7.2.300.0130.00316.93
7.2.290.0030.01317.04
7.2.130.0080.01217.10
7.2.120.0060.00917.28
7.2.110.0000.01416.89
7.2.100.0100.00416.99
7.2.90.0090.00917.22
7.2.80.0130.00616.76
7.2.70.0000.01317.23
7.2.60.0080.00717.20
7.2.50.0120.00617.01
7.2.40.0100.01017.04
7.2.30.0060.00617.18
7.2.20.0030.01417.07
7.2.10.0110.00817.16
7.2.00.0120.00618.57
7.1.250.0040.01015.73
7.1.200.0070.00615.88
7.1.100.0060.00618.23
7.1.70.0110.00017.12
7.1.60.0060.00919.40
7.1.50.0030.01716.99
7.1.00.0030.07722.35
7.0.200.0100.01017.06
7.0.60.0330.07321.77
7.0.50.0030.06317.82
7.0.40.0070.07020.21
7.0.30.0330.07720.13
7.0.20.0230.09020.13
7.0.10.0030.08320.00
7.0.00.0030.05020.08
5.6.280.0000.06721.14
5.6.210.0030.06020.71
5.6.200.0030.08718.22
5.6.190.0030.07720.41
5.6.180.0270.08020.36
5.6.170.0270.08720.52
5.6.160.0030.08720.41
5.6.150.0100.07718.12
5.6.140.0070.08018.07
5.6.130.0070.08018.11
5.6.120.0100.05721.14
5.6.110.0070.03721.00
5.6.100.0030.08021.13
5.6.90.0200.06020.98
5.6.80.0030.04020.54
5.5.350.0300.07020.38
5.5.340.0070.03318.02
5.5.330.0000.04320.36
5.5.320.0170.04320.32
5.5.310.0170.04320.26
5.5.300.0000.06017.93
5.5.290.0100.06318.00
5.5.280.0170.07720.82
5.5.270.0130.08020.86
5.5.260.0000.09720.72
5.5.250.0070.04020.54
5.5.240.0230.05020.25

preferences:
55.66 ms | 401 KiB | 5 Q