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.0100.00716.63
8.3.50.0100.00721.16
8.3.40.0090.00918.85
8.3.30.0060.00918.70
8.3.20.0080.00020.09
8.3.10.0060.00321.66
8.3.00.0080.00023.66
8.2.180.0090.00618.41
8.2.170.0100.01022.96
8.2.160.0070.00720.47
8.2.150.0060.00924.18
8.2.140.0040.00424.66
8.2.130.0000.00821.12
8.2.120.0000.00726.35
8.2.110.0060.00319.52
8.2.100.0070.00318.16
8.2.90.0050.00319.30
8.2.80.0050.00317.97
8.2.70.0040.00417.88
8.2.60.0030.00518.05
8.2.50.0070.00318.09
8.2.40.0100.00022.13
8.2.30.0000.00719.62
8.2.20.0030.00517.80
8.2.10.0000.00718.01
8.2.00.0050.00218.14
8.1.280.0070.01025.92
8.1.270.0090.00622.19
8.1.260.0000.00728.09
8.1.250.0030.00528.09
8.1.240.0090.00022.42
8.1.230.0040.00817.95
8.1.220.0040.00417.88
8.1.210.0030.00618.77
8.1.200.0050.00517.47
8.1.190.0060.00317.47
8.1.180.0060.00318.10
8.1.170.0040.00418.82
8.1.160.0040.00420.89
8.1.150.0030.00519.02
8.1.140.0050.00319.69
8.1.130.0030.00317.83
8.1.120.0050.00317.71
8.1.110.0000.00817.75
8.1.100.0060.00317.72
8.1.90.0030.00617.73
8.1.80.0000.00817.59
8.1.70.0070.00017.71
8.1.60.0030.00617.76
8.1.50.0000.00917.75
8.1.40.0060.00317.77
8.1.30.0030.00617.68
8.1.20.0050.00317.79
8.1.10.0000.00817.67
8.1.00.0030.00717.80
8.0.300.0050.00318.84
8.0.290.0000.00716.99
8.0.280.0040.00418.46
8.0.270.0040.00417.32
8.0.260.0000.00717.50
8.0.250.0040.00417.07
8.0.240.0000.00817.17
8.0.230.0000.00717.14
8.0.220.0000.00717.14
8.0.210.0040.00417.16
8.0.200.0030.00317.24
8.0.190.0000.00817.14
8.0.180.0000.00817.20
8.0.170.0080.00017.09
8.0.160.0080.00017.09
8.0.150.0040.00317.14
8.0.140.0000.00717.00
8.0.130.0030.00313.52
8.0.120.0030.00517.11
8.0.110.0080.00017.10
8.0.100.0000.00717.11
8.0.90.0040.00417.23
8.0.80.0060.00917.14
8.0.70.0030.00517.04
8.0.60.0050.00217.16
8.0.50.0040.00417.14
8.0.30.0160.00217.29
8.0.20.0060.01217.43
8.0.10.0000.00717.10
8.0.00.0080.01217.01
7.4.330.0030.00316.89
7.4.320.0030.00316.68
7.4.300.0000.00816.71
7.4.290.0060.00316.79
7.4.280.0000.00716.80
7.4.270.0030.00316.82
7.4.260.0000.00816.76
7.4.250.0070.00016.77
7.4.240.0000.00716.64
7.4.230.0030.00316.91
7.4.220.0110.00716.70
7.4.210.0060.00916.84
7.4.200.0040.00316.61
7.4.160.0100.00616.70
7.4.150.0140.00317.40
7.4.140.0100.01117.86
7.4.130.0110.00616.73
7.4.120.0110.00616.75
7.4.110.0090.01316.71
7.4.100.0170.00316.83
7.4.90.0120.00616.70
7.4.80.0110.01419.39
7.4.70.0120.00616.79
7.4.60.0060.00916.77
7.4.50.0070.00716.87
7.4.40.0130.00316.69
7.4.30.0130.00916.83
7.4.00.0070.00715.37
7.3.330.0050.00013.25
7.3.320.0060.00013.34
7.3.310.0030.00316.54
7.3.300.0030.00316.30
7.3.290.0110.00316.44
7.3.280.0100.00516.45
7.3.270.0130.00317.40
7.3.260.0030.01316.74
7.3.250.0110.00816.60
7.3.240.0130.00716.76
7.3.230.0060.01316.88
7.3.210.0100.00616.36
7.3.200.0130.00319.39
7.3.190.0140.00316.69
7.3.180.0100.01016.71
7.3.170.0170.00016.45
7.3.160.0100.00716.65
7.2.330.0030.01716.98
7.2.320.0030.01316.96
7.2.310.0070.01016.65
7.2.300.0100.00716.78
7.2.290.0090.00616.63
7.2.80.0170.00716.69
7.2.60.0000.01517.07
7.2.50.0060.00917.25
7.1.200.0100.00316.08
7.1.70.0040.00417.06
7.1.60.0130.00719.40
7.1.50.0030.01717.18
7.1.00.0070.07322.44
7.0.200.0090.00916.82
7.0.60.0300.07321.71
7.0.50.0100.07717.90
7.0.40.0030.09020.05
7.0.30.0370.07720.30
7.0.20.0300.06020.34
7.0.10.0030.08720.01
7.0.00.0130.06320.20
5.6.280.0000.04321.11
5.6.210.0030.08320.74
5.6.200.0030.06318.13
5.6.190.0070.07720.67
5.6.180.0300.04020.67
5.6.170.0300.08320.53
5.6.160.0070.06720.51
5.6.150.0070.05018.09
5.6.140.0070.06718.21
5.6.130.0100.07318.07
5.6.120.0030.09021.09
5.6.110.0130.08320.98
5.6.100.0100.08021.00
5.6.90.0070.08020.97
5.6.80.0030.04320.38
5.5.350.0270.06720.41
5.5.340.0100.04717.89
5.5.330.0000.04320.29
5.5.320.0170.04320.20
5.5.310.0130.04320.17
5.5.300.0070.06717.90
5.5.290.0070.04317.96
5.5.280.0030.08720.80
5.5.270.0100.07320.88
5.5.260.0130.08020.87
5.5.250.0170.07020.69
5.5.240.0200.07720.35

preferences:
48.3 ms | 401 KiB | 5 Q