3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime; $start = new DateTime('saturday this week 15:00'); $end = new DateTime('monday next week 08:00'); $departure = new DateTime('2016-01-10 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 && $departure->diff($now)->hours <= 72) { echo 'Error! Please contact administrator!'; } $now = new DateTimeImmutable; $departure = $now->modify('+42 hours'); echo $now->format('Y-m-d H:i:s') . PHP_EOL; echo $departure->format('Y-m-d H:i:s') . PHP_EOL; echo $now->diff($departure)->format('%h') . PHP_EOL;

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.0180.00016.88
8.3.50.0100.01016.30
8.3.40.0090.00619.00
8.3.30.0130.00318.84
8.3.20.0040.00420.34
8.3.10.0040.00423.66
8.3.00.0090.00023.47
8.2.180.0100.01017.00
8.2.170.0090.00622.96
8.2.160.0030.01020.37
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00321.24
8.2.120.0030.00626.35
8.2.110.0070.00319.18
8.2.100.0110.00018.05
8.2.90.0050.00319.14
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0040.00418.16
8.2.50.0000.01018.09
8.2.40.0000.00720.58
8.2.30.0050.00219.64
8.2.20.0040.00417.90
8.2.10.0050.00218.11
8.2.00.0040.00418.27
8.1.280.0170.00325.92
8.1.270.0120.00622.25
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0060.00322.32
8.1.230.0000.01117.95
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.60
8.1.190.0050.00317.34
8.1.180.0080.00018.10
8.1.170.0000.00818.74
8.1.160.0040.00420.91
8.1.150.0050.00320.80
8.1.140.0040.00419.80
8.1.130.0000.00717.83
8.1.120.0040.00417.74
8.1.110.0050.00317.61
8.1.100.0030.00617.63
8.1.90.0080.00017.71
8.1.80.0000.00817.75
8.1.70.0030.00317.68
8.1.60.0040.00417.79
8.1.50.0000.00917.67
8.1.40.0040.00417.71
8.1.30.0030.00517.78
8.1.20.0080.00017.77
8.1.10.0050.00317.80
8.1.00.0030.00617.75
8.0.300.0040.00418.78
8.0.290.0040.00416.88
8.0.280.0040.00418.60
8.0.270.0000.00717.30
8.0.260.0030.00317.39
8.0.250.0020.00517.11
8.0.240.0000.00717.12
8.0.230.0000.00717.25
8.0.220.0000.00717.06
8.0.210.0040.00417.18
8.0.200.0000.00617.25
8.0.190.0040.00417.23
8.0.180.0040.00417.09
8.0.170.0050.00317.18
8.0.160.0070.00017.22
8.0.150.0050.00216.99
8.0.140.0050.00317.01
8.0.130.0030.00313.55
8.0.120.0000.00817.05
8.0.110.0030.00517.14
8.0.100.0070.00017.20
8.0.90.0000.00817.07
8.0.80.0000.01717.14
8.0.70.0070.00017.10
8.0.60.0000.00717.15
8.0.50.0040.00417.03
8.0.30.0080.01317.45
8.0.20.0090.01117.42
8.0.10.0070.00017.16
8.0.00.0080.01116.90
7.4.330.0030.00316.82
7.4.320.0000.00616.71
7.4.300.0000.00716.68
7.4.290.0000.00716.82
7.4.280.0000.00716.75
7.4.270.0000.00716.63
7.4.260.0030.00416.73
7.4.250.0000.00716.76
7.4.240.0050.00216.74
7.4.230.0030.00316.61
7.4.220.0070.01116.75
7.4.210.0060.00816.84
7.4.200.0030.00516.75
7.4.160.0160.00016.74
7.4.150.0130.00617.40
7.4.140.0080.01017.86
7.4.130.0100.00716.75
7.4.120.0140.00716.67
7.4.110.0070.01016.83
7.4.100.0140.00316.85
7.4.90.0120.00616.64
7.4.80.0110.01519.39
7.4.70.0070.01016.67
7.4.60.0100.01316.70
7.4.50.0060.01016.70
7.4.40.0130.00716.70
7.4.30.0140.01016.71
7.4.00.0040.01315.36
7.3.330.0020.00213.36
7.3.320.0050.00013.22
7.3.310.0040.00416.53
7.3.300.0000.00716.39
7.3.290.0090.00616.46
7.3.280.0070.01116.47
7.3.270.0080.00917.40
7.3.260.0060.01116.72
7.3.250.0130.00716.70
7.3.240.0080.00916.72
7.3.230.0100.00716.65
7.3.210.0100.00716.57
7.3.200.0110.00819.39
7.3.190.0140.00416.59
7.3.180.0120.00616.51
7.3.170.0070.01016.47
7.3.160.0120.00616.82
7.3.120.0090.01015.00
7.3.110.0060.00915.34
7.3.100.0060.00914.85
7.3.90.0060.01315.07
7.3.80.0040.01115.22
7.3.70.0000.00915.08
7.3.60.0040.01214.99
7.3.50.0030.00615.19
7.3.40.0040.01115.01
7.3.30.0070.00315.12
7.3.20.0060.00916.86
7.3.10.0280.00716.66
7.3.00.0120.00416.66
7.2.330.0040.01416.86
7.2.320.0160.00717.07
7.2.310.0120.00616.84
7.2.300.0080.00817.00
7.2.290.0170.00016.86
7.2.250.0100.01015.28
7.2.240.0040.01515.54
7.2.230.0030.01315.34
7.2.220.0000.01115.11
7.2.210.0070.01015.36
7.2.200.0080.00815.27
7.2.190.0030.00915.29
7.2.180.0100.00314.91
7.2.170.0060.00615.37
7.2.130.0130.01316.50
7.2.120.0530.00416.55
7.2.110.0350.01116.61
7.2.100.0180.01016.78
7.2.90.0280.00616.96
7.2.80.0370.00316.90
7.2.70.0380.00716.93
7.2.60.0140.00816.88
7.2.50.0310.00416.52
7.2.40.0580.01016.45
7.2.30.0470.00816.48
7.2.20.0380.00816.95
7.2.10.0260.00016.84
7.2.00.0360.00818.16
7.1.330.0080.00815.84
7.1.320.0000.01416.01
7.1.310.0060.00616.04
7.1.300.0030.01015.81
7.1.290.0030.01015.97
7.1.280.0000.01016.04
7.1.270.0070.00716.01
7.1.260.0060.00715.81
7.1.250.0170.00715.56
7.1.200.0100.00515.39
7.1.100.0100.00318.21
7.1.70.0040.00417.32
7.1.60.0100.01019.40
7.1.50.0000.02317.30
7.1.00.0000.04022.28
7.0.200.0200.00316.92
7.0.60.0170.07321.71
7.0.50.0100.07017.68
7.0.40.0030.08720.03
7.0.30.0270.04020.20
7.0.20.0230.08020.19
7.0.10.0100.04020.30
7.0.00.0100.08720.09
5.6.280.0000.03320.83
5.6.210.0100.07720.52
5.6.200.0000.06018.12
5.6.190.0070.04720.43
5.6.180.0230.08320.63
5.6.170.0230.08720.50
5.6.160.0100.08320.50
5.6.150.0100.07718.17
5.6.140.0070.06718.13
5.6.130.0030.05718.13
5.6.120.0030.05721.02
5.6.110.0030.04321.14
5.6.100.0130.06720.97
5.6.90.0100.09021.00
5.6.80.0000.06320.53
5.5.350.0370.06020.43
5.5.340.0030.04017.98
5.5.330.0030.04320.36
5.5.320.0230.04020.26
5.5.310.0170.07320.26
5.5.300.0100.07017.97
5.5.290.0170.06318.03
5.5.280.0070.04720.90
5.5.270.0100.08320.76
5.5.260.0030.06020.80
5.5.250.0030.04020.75
5.5.240.0230.07020.27

preferences:
54.44 ms | 400 KiB | 5 Q