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-12 23:30:59'); $diff = ($departure->getTimestamp() - $now->getTimestamp) /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.0070.01116.86
8.3.50.0110.00721.18
8.3.40.0060.01218.80
8.3.30.0150.00318.79
8.3.20.0040.00420.25
8.3.10.0070.00021.69
8.3.00.0080.00023.70
8.2.180.0110.00418.66
8.2.170.0030.01422.96
8.2.160.0030.01020.47
8.2.150.0050.00325.66
8.2.140.0000.00824.66
8.2.130.0040.00421.17
8.2.120.0040.01126.35
8.2.110.0040.00419.44
8.2.100.0070.00418.05
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0050.00318.05
8.2.50.0040.00818.09
8.2.40.0040.00422.27
8.2.30.0000.00719.46
8.2.20.0040.00417.98
8.2.10.0030.00518.23
8.2.00.0040.00418.14
8.1.280.0070.01025.92
8.1.270.0120.00624.10
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0060.00322.55
8.1.230.0070.00417.95
8.1.220.0030.00617.77
8.1.210.0040.00418.77
8.1.200.0060.00317.60
8.1.190.0050.00317.60
8.1.180.0000.00818.10
8.1.170.0000.00818.82
8.1.160.0000.00720.82
8.1.150.0080.00018.91
8.1.140.0050.00319.61
8.1.130.0030.00319.39
8.1.120.0040.00417.70
8.1.110.0070.00017.65
8.1.100.0100.00017.60
8.1.90.0040.00417.61
8.1.80.0070.00017.73
8.1.70.0040.00417.58
8.1.60.0070.00017.73
8.1.50.0040.00417.68
8.1.40.0070.00017.60
8.1.30.0030.00517.74
8.1.20.0040.00417.72
8.1.10.0000.00817.75
8.1.00.0130.00017.75
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0000.00718.63
8.0.270.0000.00717.39
8.0.260.0000.00817.06
8.0.250.0040.00417.26
8.0.240.0060.00317.32
8.0.230.0070.00017.16
8.0.220.0070.00017.11
8.0.210.0000.00717.10
8.0.200.0000.00617.19
8.0.190.0060.00317.18
8.0.180.0000.00817.27
8.0.170.0000.00917.16
8.0.160.0070.00017.14
8.0.150.0040.00417.14
8.0.140.0000.00717.19
8.0.130.0000.00513.61
8.0.120.0000.00817.18
8.0.110.0040.00417.22
8.0.100.0040.00417.17
8.0.90.0030.00617.27
8.0.80.0030.01717.21
8.0.70.0030.00617.09
8.0.60.0070.00017.12
8.0.50.0070.00017.01
8.0.30.0120.01017.26
8.0.20.0150.00517.49
8.0.10.0000.00817.27
8.0.00.0110.00917.04
7.4.330.0000.00516.78
7.4.320.0060.00016.60
7.4.300.0070.00016.71
7.4.290.0050.00316.80
7.4.280.0030.00616.80
7.4.270.0030.00316.68
7.4.260.0000.00716.64
7.4.250.0050.00216.84
7.4.240.0030.00316.78
7.4.230.0030.00316.79
7.4.220.0090.01216.84
7.4.210.0060.00916.82
7.4.200.0000.00716.69
7.4.160.0090.00616.66
7.4.150.0130.01017.40
7.4.140.0110.00717.86
7.4.130.0090.00816.78
7.4.120.0080.01016.74
7.4.110.0090.00916.73
7.4.100.0060.01216.61
7.4.90.0080.00816.69
7.4.80.0030.01419.39
7.4.70.0060.01516.80
7.4.60.0100.01016.56
7.4.50.0030.01316.75
7.4.40.0080.01216.98
7.4.30.0070.01016.86
7.4.00.0100.00615.18
7.3.330.0000.00613.24
7.3.320.0000.00613.42
7.3.310.0030.00316.38
7.3.300.0070.00016.51
7.3.290.0140.00216.57
7.3.280.0060.01216.54
7.3.270.0090.00917.40
7.3.260.0150.00316.67
7.3.250.0110.00516.70
7.3.240.0120.00516.60
7.3.230.0070.01016.61
7.3.210.0030.01716.51
7.3.200.0110.00716.56
7.3.190.0130.00716.78
7.3.180.0140.00316.59
7.3.170.0030.01316.58
7.3.160.0070.00916.66
7.2.330.0100.01317.00
7.2.320.0110.00616.93
7.2.310.0150.00616.98
7.2.300.0040.01516.91
7.2.290.0060.00916.96
7.2.60.0110.00417.11
7.2.00.0030.00919.54
7.1.200.0130.00316.06
7.1.100.0040.01118.45
7.1.70.0030.00717.46
7.1.60.0120.00619.40
7.1.50.0110.00017.18
7.1.00.0100.07022.33
7.0.200.0120.00616.95
7.0.60.0230.07021.66
7.0.50.0070.05017.86
7.0.40.0170.07320.27
7.0.30.0270.07320.19
7.0.20.0300.08020.19
7.0.10.0130.06720.19
7.0.00.0030.04320.30
5.6.280.0030.04721.02
5.6.210.0070.07720.50
5.6.200.0130.08318.19
5.6.190.0070.07320.35
5.6.180.0300.04320.61
5.6.170.0200.04320.71
5.6.160.0070.07720.51
5.6.150.0030.05718.21
5.6.140.0070.06718.08
5.6.130.0100.07718.16
5.6.120.0070.06021.14
5.6.110.0100.04020.98
5.6.100.0030.08721.13
5.6.90.0100.07321.07
5.6.80.0000.04320.37
5.5.350.0230.08020.38
5.5.340.0030.08017.92
5.5.330.0000.04320.20
5.5.320.0200.04020.50
5.5.310.0130.04320.20
5.5.300.0030.08717.89
5.5.290.0100.07717.98
5.5.280.0130.07720.79
5.5.270.0070.05020.73
5.5.260.0130.07320.88
5.5.250.0070.07720.61
5.5.240.0200.04320.16

preferences:
49.21 ms | 401 KiB | 5 Q