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->diff($now)->format('%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.0150.00316.87
8.3.50.0100.00316.25
8.3.40.0100.00718.97
8.3.30.0100.00318.88
8.3.20.0050.00320.34
8.3.10.0040.00423.61
8.3.00.0000.00823.70
8.2.180.0190.00616.50
8.2.170.0160.00022.96
8.2.160.0040.01120.43
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0080.00021.04
8.2.120.0070.00726.35
8.2.110.0070.00319.30
8.2.100.0110.00018.16
8.2.90.0040.00419.27
8.2.80.0050.00317.97
8.2.70.0030.00617.88
8.2.60.0050.00218.05
8.2.50.0030.00618.09
8.2.40.0060.00320.51
8.2.30.0000.00919.64
8.2.20.0070.00019.70
8.2.10.0030.00518.15
8.2.00.0040.00418.22
8.1.280.0150.00325.92
8.1.270.0130.00622.27
8.1.260.0060.00328.09
8.1.250.0050.00328.09
8.1.240.0030.00622.18
8.1.230.0040.00717.89
8.1.220.0030.00517.78
8.1.210.0060.00318.77
8.1.200.0000.00917.61
8.1.190.0090.00017.47
8.1.180.0000.00818.10
8.1.170.0050.00318.84
8.1.160.0070.00020.80
8.1.150.0000.00718.93
8.1.140.0040.00419.71
8.1.130.0070.00017.75
8.1.120.0000.00717.68
8.1.110.0050.00217.60
8.1.100.0030.00717.75
8.1.90.0050.00317.66
8.1.80.0040.00417.71
8.1.70.0070.00017.63
8.1.60.0040.00417.66
8.1.50.0000.00817.74
8.1.40.0040.00417.75
8.1.30.0030.00517.89
8.1.20.0040.00417.88
8.1.10.0080.00017.78
8.1.00.0050.00617.76
8.0.300.0080.00018.84
8.0.290.0080.00017.00
8.0.280.0000.00718.57
8.0.270.0030.00317.31
8.0.260.0060.00017.26
8.0.250.0030.00317.22
8.0.240.0000.00817.22
8.0.230.0030.00317.23
8.0.220.0070.00017.07
8.0.210.0030.00517.13
8.0.200.0000.00617.18
8.0.190.0040.00417.21
8.0.180.0000.00717.18
8.0.170.0000.00717.04
8.0.160.0050.00217.12
8.0.150.0000.00717.07
8.0.140.0040.00417.13
8.0.130.0050.00013.54
8.0.120.0030.00517.09
8.0.110.0040.00417.19
8.0.100.0030.00317.10
8.0.90.0090.00017.27
8.0.80.0040.01117.03
8.0.70.0040.00416.97
8.0.60.0040.00417.16
8.0.50.0040.00416.95
8.0.30.0080.00817.18
8.0.20.0050.01317.50
8.0.10.0050.00217.21
8.0.00.0110.00816.99
7.4.330.0000.00516.85
7.4.320.0000.00716.76
7.4.300.0000.00716.72
7.4.290.0000.00716.70
7.4.280.0040.00416.84
7.4.270.0000.00716.70
7.4.260.0070.00016.70
7.4.250.0000.00716.72
7.4.240.0030.00316.73
7.4.230.0070.00016.71
7.4.220.0110.00716.75
7.4.210.0110.00316.76
7.4.200.0040.00416.83
7.4.160.0080.00816.69
7.4.150.0140.00317.40
7.4.140.0160.00617.86
7.4.130.0030.02016.79
7.4.120.0140.00516.77
7.4.110.0060.01116.77
7.4.100.0110.00616.76
7.4.90.0160.00316.71
7.4.80.0080.00819.39
7.4.70.0130.01016.88
7.4.60.0030.01316.63
7.4.50.0100.00716.73
7.4.40.0130.01016.80
7.4.30.0090.00916.63
7.4.00.0030.01315.17
7.3.330.0020.00213.25
7.3.320.0050.00013.30
7.3.310.0000.00716.41
7.3.300.0000.00716.49
7.3.290.0070.01016.48
7.3.280.0120.00616.47
7.3.270.0040.01317.40
7.3.260.0030.01416.62
7.3.240.0080.01016.60
7.3.230.0120.00616.71
7.3.210.0160.00816.57
7.3.200.0110.00719.39
7.3.190.0040.01216.53
7.3.180.0100.00716.54
7.3.170.0040.01416.74
7.3.160.0100.00616.63
7.2.330.0150.00417.08
7.2.320.0070.01017.03
7.2.310.0080.00816.99
7.2.300.0110.00717.01
7.2.290.0090.00616.98
7.2.60.0090.00617.18
7.2.00.0030.01019.70
7.1.200.0100.00016.00
7.1.100.0140.00418.30
7.1.70.0040.00417.38
7.1.60.0070.00719.40
7.1.50.0060.01317.36
7.1.00.0070.07322.33
7.0.200.0090.00617.02
7.0.60.0200.07021.69
7.0.50.0030.05317.92
7.0.40.0100.05720.09
7.0.30.0200.08720.23
7.0.20.0300.06320.18
7.0.10.0170.08020.21
7.0.00.0100.08320.12
5.6.280.0070.06721.02
5.6.210.0100.08020.47
5.6.200.0100.04318.09
5.6.190.0100.05020.49
5.6.180.0270.07720.61
5.6.170.0300.03720.47
5.6.160.0130.08020.70
5.6.150.0030.08318.12
5.6.140.0100.06718.07
5.6.130.0130.07318.12
5.6.120.0100.04021.09
5.6.110.0030.06720.97
5.6.100.0200.07020.88
5.6.90.0000.04720.97
5.6.80.0030.03720.52
5.5.350.0300.05320.32
5.5.340.0070.07717.99
5.5.330.0070.03720.37
5.5.320.0370.04720.41
5.5.310.0170.04720.29
5.5.300.0000.04317.92
5.5.290.0070.08017.92
5.5.280.0170.07020.79
5.5.270.0100.09020.67
5.5.260.0070.08320.87
5.5.250.0130.08020.63
5.5.240.0170.06020.12

preferences:
54.03 ms | 401 KiB | 5 Q