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'); 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) { echo 'Error! Please contact administrator!'; } if ($departure->diff($now)->hours <= 72) { echo 'Error2! 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.70.0120.00316.75
8.3.60.0170.00316.88
8.3.50.0080.01121.21
8.3.40.0060.00918.79
8.3.30.0120.00318.70
8.3.20.0080.00020.19
8.3.10.0040.00423.57
8.3.00.0000.00923.65
8.2.180.0100.01017.00
8.2.170.0070.00722.96
8.2.160.0030.01020.35
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0080.00021.14
8.2.120.0000.00726.35
8.2.110.0000.00919.43
8.2.100.0070.00417.93
8.2.90.0040.00419.35
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0040.00418.05
8.2.50.0080.00418.09
8.2.40.0040.00422.45
8.2.30.0040.00419.55
8.2.20.0030.00617.84
8.2.10.0000.00818.25
8.2.00.0040.00418.09
8.1.280.0110.01125.92
8.1.270.0140.00422.19
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00722.46
8.1.230.0080.00317.77
8.1.220.0040.00417.91
8.1.210.0080.00018.77
8.1.200.0030.00617.47
8.1.190.0060.00317.48
8.1.180.0050.00318.10
8.1.170.0030.00518.89
8.1.160.0000.00720.94
8.1.150.0000.00820.71
8.1.140.0040.00419.68
8.1.130.0030.00317.74
8.1.120.0000.00817.70
8.1.110.0040.00417.56
8.1.100.0030.00717.61
8.1.90.0050.00317.54
8.1.80.0000.00817.72
8.1.70.0030.00317.66
8.1.60.0000.00717.83
8.1.50.0000.00817.64
8.1.40.0040.00417.60
8.1.30.0030.00617.77
8.1.20.0060.00317.75
8.1.10.0040.00417.66
8.1.00.0030.00617.80
8.0.300.0050.00318.77
8.0.290.0040.00416.88
8.0.280.0030.00518.57
8.0.270.0030.00317.39
8.0.260.0000.00617.43
8.0.250.0070.00017.18
8.0.240.0030.00617.29
8.0.230.0040.00417.25
8.0.220.0000.00717.21
8.0.210.0070.00017.19
8.0.200.0030.00317.29
8.0.190.0070.00017.13
8.0.180.0040.00417.25
8.0.170.0040.00417.21
8.0.160.0000.00717.16
8.0.150.0000.00717.16
8.0.140.0040.00417.12
8.0.130.0000.00713.46
8.0.120.0030.00517.20
8.0.110.0000.00817.17
8.0.100.0000.00717.22
8.0.90.0030.00617.11
8.0.80.0120.00317.18
8.0.70.0040.00417.04
8.0.60.0070.00017.33
8.0.50.0030.00517.10
8.0.30.0090.00817.37
8.0.20.0110.00917.40
8.0.10.0040.00417.34
8.0.00.0080.01017.06
7.4.330.0000.00516.80
7.4.320.0000.00616.80
7.4.300.0000.00716.71
7.4.290.0050.00316.80
7.4.280.0040.00416.64
7.4.270.0050.00316.63
7.4.260.0030.00316.78
7.4.250.0030.00616.57
7.4.240.0000.00716.80
7.4.230.0020.00516.67
7.4.220.0140.01216.66
7.4.210.0080.00916.91
7.4.200.0080.00016.60
7.4.160.0090.00616.82
7.4.150.0110.00717.40
7.4.140.0080.01317.86
7.4.130.0090.01016.73
7.4.120.0100.00916.74
7.4.110.0100.00716.76
7.4.100.0030.01416.88
7.4.90.0110.00716.67
7.4.80.0090.00919.39
7.4.70.0100.01016.88
7.4.60.0070.01016.61
7.4.50.0040.01116.49
7.4.40.0160.00016.60
7.4.30.0030.01716.80
7.4.00.0050.01115.21
7.3.330.0020.00213.34
7.3.320.0060.00013.49
7.3.310.0040.00416.58
7.3.300.0000.00716.49
7.3.290.0020.01216.53
7.3.280.0100.00816.54
7.3.270.0100.00717.40
7.3.260.0100.01316.52
7.3.250.0070.01016.59
7.3.240.0080.01316.59
7.3.230.0120.01016.79
7.3.210.0150.00616.46
7.3.200.0110.00819.39
7.3.190.0070.01016.59
7.3.180.0120.01216.65
7.3.170.0200.00316.70
7.3.160.0090.00616.61
7.3.120.0100.01014.88
7.3.110.0060.01215.20
7.3.100.0070.01115.14
7.3.90.0060.01215.01
7.3.80.0100.00315.17
7.3.70.0080.00414.73
7.3.60.0030.01015.16
7.3.50.0070.00714.73
7.3.40.0090.00014.97
7.3.30.0060.00614.99
7.3.20.0080.00816.93
7.3.10.0110.00316.74
7.3.00.0090.00916.73
7.2.330.0130.01316.75
7.2.320.0030.01316.56
7.2.310.0080.00816.93
7.2.300.0090.01316.68
7.2.290.0060.01016.82
7.2.250.0100.01015.16
7.2.240.0070.01415.17
7.2.230.0100.00315.25
7.2.220.0060.00615.27
7.2.210.0070.00315.32
7.2.200.0040.00815.13
7.2.190.0030.00815.11
7.2.180.0040.01115.17
7.2.170.0090.00315.29
7.2.130.0170.00816.72
7.2.120.0210.00316.41
7.2.110.0140.01016.50
7.2.100.0120.00917.05
7.2.90.0190.00316.58
7.2.80.0080.01616.59
7.2.70.0110.01116.49
7.2.60.0100.01016.89
7.2.50.0180.01116.97
7.2.40.0170.01016.66
7.2.30.0200.00416.59
7.2.20.0180.00316.55
7.2.10.0220.00916.52
7.2.00.0080.00818.49
7.1.330.0070.01015.86
7.1.320.0070.00715.91
7.1.310.0030.01415.96
7.1.300.0030.01316.23
7.1.290.0080.00415.93
7.1.280.0030.01015.90
7.1.270.0060.00616.00
7.1.260.0030.01015.82
7.1.250.0070.01115.93
7.1.200.0090.00616.06
7.1.70.0030.00717.50
7.1.60.0030.01017.24
7.1.50.0100.01317.17
7.1.00.0030.03322.31
7.0.200.0070.00716.85
7.0.60.0170.08721.63
7.0.50.0100.04017.82
7.0.40.0170.05020.02
7.0.30.0170.04320.16
7.0.20.0330.06320.09
7.0.10.0200.04320.14
7.0.00.0030.06019.99
5.6.280.0030.05021.07
5.6.210.0100.07320.71
5.6.200.0200.07318.22
5.6.190.0030.05020.41
5.6.180.0230.05720.65
5.6.170.0230.08320.77
5.6.160.0000.06720.39
5.6.150.0130.07718.11
5.6.140.0000.05718.18
5.6.130.0070.07718.17
5.6.120.0030.08721.04
5.6.110.0070.04021.13
5.6.100.0170.07720.95
5.6.90.0030.06720.98
5.6.80.0100.08020.39
5.5.350.0270.05720.31
5.5.340.0130.03017.93
5.5.330.0100.03320.36
5.5.320.0200.04020.34
5.5.310.0200.07720.27
5.5.300.0000.05017.92
5.5.290.0000.05717.91
5.5.280.0100.08320.80
5.5.270.0170.07020.79
5.5.260.0000.08720.67
5.5.250.0030.04020.66
5.5.240.0200.05720.28

preferences:
35.33 ms | 401 KiB | 5 Q