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 (true) { echo $departure->diff($now); }

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.0110.00316.88
8.3.50.0100.00721.33
8.3.40.0110.00719.07
8.3.30.0140.00718.84
8.3.20.0050.00220.26
8.3.10.0070.00023.67
8.3.00.0040.00423.65
8.2.180.0210.00916.75
8.2.170.0070.00722.96
8.2.160.0110.00620.47
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00421.22
8.2.120.0080.00026.35
8.2.110.0090.00019.46
8.2.100.0090.00318.05
8.2.90.0080.00019.30
8.2.80.0000.00818.00
8.2.70.0060.00317.63
8.2.60.0040.00418.05
8.2.50.0030.00718.09
8.2.40.0040.00420.78
8.2.30.0000.00719.63
8.2.20.0050.00317.93
8.2.10.0050.00218.10
8.2.00.0040.00418.29
8.1.280.0090.01325.92
8.1.270.0080.00022.07
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00622.43
8.1.230.0040.00717.77
8.1.220.0080.00017.80
8.1.210.0000.00918.77
8.1.200.0000.00917.47
8.1.190.0080.00017.50
8.1.180.0050.00318.10
8.1.170.0000.00818.70
8.1.160.0040.00420.89
8.1.150.0050.00320.79
8.1.140.0080.00019.76
8.1.130.0030.00317.77
8.1.120.0070.00017.71
8.1.110.0080.00017.61
8.1.100.0070.00417.70
8.1.90.0040.00417.74
8.1.80.0060.00317.70
8.1.70.0000.00717.73
8.1.60.0030.00517.72
8.1.50.0030.00617.71
8.1.40.0030.00517.71
8.1.30.0000.00917.84
8.1.20.0050.00317.71
8.1.10.0050.00217.67
8.1.00.0040.00717.80
8.0.300.0090.00018.96
8.0.290.0070.00017.00
8.0.280.0030.00318.48
8.0.270.0070.00017.39
8.0.260.0030.00517.29
8.0.250.0030.00317.32
8.0.240.0030.00517.25
8.0.230.0030.00317.32
8.0.220.0000.00717.21
8.0.210.0000.00717.22
8.0.200.0070.00017.21
8.0.190.0080.00017.13
8.0.180.0030.00517.17
8.0.170.0000.00817.11
8.0.160.0040.00417.20
8.0.150.0040.00417.08
8.0.140.0040.00417.18
8.0.130.0000.00613.56
8.0.120.0030.00517.07
8.0.110.0000.00817.16
8.0.100.0040.00417.21
8.0.90.0060.00317.09
8.0.80.0160.00017.24
8.0.70.0070.00017.15
8.0.60.0080.00017.21
8.0.50.0050.00217.20
8.0.30.0100.01317.48
8.0.20.0120.00717.40
8.0.10.0030.00617.27
8.0.00.0100.01117.04
7.4.330.0060.00016.79
7.4.320.0030.00316.72
7.4.300.0040.00416.82
7.4.290.0030.00316.71
7.4.280.0000.00716.79
7.4.270.0000.00716.69
7.4.260.0000.00716.70
7.4.250.0040.00416.64
7.4.240.0040.00416.71
7.4.230.0000.00716.77
7.4.220.0170.00716.71
7.4.210.0040.01016.82
7.4.200.0050.00216.78
7.4.160.0000.01516.70
7.4.150.0100.00717.40
7.4.140.0130.00917.86
7.4.130.0100.00816.75
7.4.120.0090.01116.76
7.4.110.0100.00616.56
7.4.100.0060.01216.80
7.4.90.0030.01516.67
7.4.80.0070.01119.39
7.4.70.0070.01016.89
7.4.60.0040.01216.68
7.4.50.0070.01016.80
7.4.40.0070.01316.66
7.4.30.0150.00316.86
7.4.00.0050.01015.29
7.3.330.0000.00513.41
7.3.320.0000.00613.39
7.3.310.0000.00716.57
7.3.300.0030.00316.31
7.3.290.0020.01316.52
7.3.280.0050.01316.54
7.3.270.0090.00817.40
7.3.260.0070.01016.75
7.3.250.0100.00716.60
7.3.240.0100.01016.61
7.3.230.0140.00316.76
7.3.210.0110.00616.64
7.3.200.0080.01119.39
7.3.190.0140.00616.77
7.3.180.0100.01316.73
7.3.170.0100.00716.43
7.3.160.0120.00416.48
7.3.120.0100.00615.09
7.3.110.0000.01615.06
7.3.100.0030.01415.11
7.3.90.0100.00315.12
7.3.80.0100.00615.14
7.3.70.0050.00515.13
7.3.60.0040.01215.11
7.3.50.0090.00615.14
7.3.40.0000.01815.18
7.3.30.0000.01214.93
7.3.20.0060.00916.95
7.3.10.0060.00916.99
7.3.00.0070.00717.04
7.2.330.0070.01016.73
7.2.320.0080.00816.74
7.2.310.0130.01217.01
7.2.300.0130.00316.62
7.2.290.0100.00717.03
7.2.250.0120.00615.13
7.2.240.0110.00715.32
7.2.230.0040.01514.89
7.2.220.0030.00915.19
7.2.210.0110.00715.05
7.2.200.0000.01315.22
7.2.190.0030.01015.04
7.2.180.0040.01515.07
7.2.170.0060.00915.33
7.2.60.0030.01217.07
7.2.00.0000.00919.61
7.1.330.0140.00316.19
7.1.320.0070.01015.86
7.1.310.0070.01015.96
7.1.300.0060.00615.93
7.1.290.0060.01216.08
7.1.280.0090.00616.05
7.1.270.0030.01315.91
7.1.260.0060.00916.10
7.1.200.0070.00715.83
7.1.100.0130.00518.18
7.1.70.0030.00617.25
7.1.60.0110.01419.40
7.1.50.0100.01017.21
7.1.00.0070.07322.32
7.0.200.0280.00916.86
7.0.60.0230.08021.86
7.0.50.0100.03717.91
7.0.40.0100.08320.09
7.0.30.0170.05320.09
7.0.20.0270.04720.18
7.0.10.0130.04020.30
7.0.00.0100.04020.32
5.6.280.0030.05021.12
5.6.210.0030.06320.71
5.6.200.0000.07018.19
5.6.190.0000.06020.61
5.6.180.0200.07020.57
5.6.170.0230.06020.45
5.6.160.0030.08020.48
5.6.150.0100.07718.09
5.6.140.0070.08318.14
5.6.130.0070.07318.07
5.6.120.0100.08021.14
5.6.110.0000.04721.11
5.6.100.0070.06721.12
5.6.90.0100.08021.12
5.6.80.0130.07320.50
5.5.350.0330.07020.33
5.5.340.0030.03717.98
5.5.330.0000.04720.19
5.5.320.0270.03720.17
5.5.310.0200.08020.28
5.5.300.0100.07018.01
5.5.290.0030.06017.98
5.5.280.0130.03320.89
5.5.270.0070.06320.79
5.5.260.0070.06320.87
5.5.250.0000.06020.46
5.5.240.0230.07320.06

preferences:
47.11 ms | 401 KiB | 5 Q