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($flSummary[0]['ddt']); echo $now; echo $start; echo $end; 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.0110.00716.88
8.3.50.0150.00521.14
8.3.40.0110.00719.17
8.3.30.0000.01618.92
8.3.20.0000.00720.39
8.3.10.0040.00423.66
8.3.00.0060.00323.61
8.2.180.0180.00318.79
8.2.170.0110.00322.96
8.2.160.0040.01120.52
8.2.150.0040.00424.18
8.2.140.0020.00524.66
8.2.130.0110.00021.11
8.2.120.0000.00826.35
8.2.110.0050.00519.25
8.2.100.0090.00318.16
8.2.90.0000.00819.38
8.2.80.0000.00818.00
8.2.70.0030.00618.00
8.2.60.0000.00818.05
8.2.50.0070.00318.09
8.2.40.0050.00220.73
8.2.30.0050.00219.75
8.2.20.0040.00417.99
8.2.10.0000.00718.35
8.2.00.0000.00718.13
8.1.280.0070.01425.92
8.1.270.0110.00422.18
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0060.00322.54
8.1.230.0040.00817.83
8.1.220.0000.00817.78
8.1.210.0030.00618.77
8.1.200.0040.00417.48
8.1.190.0080.00017.25
8.1.180.0000.00818.10
8.1.170.0060.00318.65
8.1.160.0040.00420.88
8.1.150.0000.00920.67
8.1.140.0000.00819.65
8.1.130.0000.00717.69
8.1.120.0000.00717.70
8.1.110.0030.00517.67
8.1.100.0070.00317.68
8.1.90.0040.00417.69
8.1.80.0020.00517.68
8.1.70.0000.00717.71
8.1.60.0030.00617.70
8.1.50.0030.00617.63
8.1.40.0030.00517.70
8.1.30.0040.00417.74
8.1.20.0040.00417.83
8.1.10.0040.00417.77
8.1.00.0080.00417.66
8.0.300.0040.00418.96
8.0.290.0070.00017.00
8.0.280.0000.00718.51
8.0.270.0070.00017.45
8.0.260.0000.00717.25
8.0.250.0000.00717.28
8.0.240.0070.00017.23
8.0.230.0030.00317.20
8.0.220.0070.00017.18
8.0.210.0070.00017.08
8.0.200.0060.00017.16
8.0.190.0060.00317.25
8.0.180.0030.00617.08
8.0.170.0040.00417.19
8.0.160.0000.00717.14
8.0.150.0040.00417.12
8.0.140.0070.00016.96
8.0.130.0000.00513.49
8.0.120.0080.00017.15
8.0.110.0000.00717.00
8.0.100.0080.00017.17
8.0.90.0070.00017.00
8.0.80.0150.00617.07
8.0.70.0040.00417.01
8.0.60.0070.00016.97
8.0.50.0000.00717.02
8.0.30.0050.01117.40
8.0.20.0090.01017.40
8.0.10.0080.00017.17
8.0.00.0070.01417.03
7.4.330.0050.00016.81
7.4.320.0000.00616.70
7.4.300.0000.00816.60
7.4.290.0030.00316.85
7.4.280.0000.00816.81
7.4.270.0000.00716.78
7.4.260.0030.00316.73
7.4.250.0030.00516.76
7.4.240.0000.00716.86
7.4.230.0030.00416.80
7.4.220.0110.00716.82
7.4.210.0110.00616.72
7.4.200.0000.00716.64
7.4.160.0050.01316.54
7.4.150.0100.00817.40
7.4.140.0080.01117.86
7.4.130.0090.01116.80
7.4.120.0110.00516.70
7.4.110.0070.01016.69
7.4.100.0070.01116.76
7.4.90.0030.01416.73
7.4.80.0060.01819.39
7.4.70.0130.00916.91
7.4.60.0030.01316.68
7.4.50.0060.00916.73
7.4.40.0080.00916.91
7.4.30.0160.01016.71
7.4.00.0070.01014.96
7.3.330.0060.00013.45
7.3.320.0030.00313.36
7.3.310.0050.00216.59
7.3.300.0000.00716.52
7.3.290.0030.00316.59
7.3.280.0070.00916.61
7.3.270.0100.00717.40
7.3.260.0070.01716.78
7.3.250.0100.00916.63
7.3.240.0130.00616.74
7.3.230.0090.00916.96
7.3.210.0100.00716.54
7.3.200.0130.00819.39
7.3.190.0140.00716.64
7.3.180.0090.00916.84
7.3.170.0120.00616.65
7.3.160.0060.01216.62
7.3.10.0080.00316.95
7.3.00.0040.01116.73
7.2.330.0120.00417.05
7.2.320.0180.00316.98
7.2.310.0100.00616.89
7.2.300.0080.01216.71
7.2.290.0100.00716.69
7.2.130.0000.01016.91
7.2.120.0060.00917.23
7.2.110.0070.00716.90
7.2.100.0100.00017.17
7.2.90.0000.01616.89
7.2.80.0000.01017.25
7.2.70.0040.01217.15
7.2.60.0050.01117.22
7.2.50.0130.00316.88
7.2.40.0070.00716.98
7.2.30.0080.00417.24
7.2.20.0090.00917.18
7.2.10.0030.00817.04
7.2.00.0070.00818.39
7.1.250.0030.00915.79
7.1.200.0030.01015.91
7.1.100.0090.00618.30
7.1.70.0040.00417.33
7.1.60.0080.00419.40
7.1.50.0070.01617.15
7.1.00.0070.07322.25
7.0.200.0300.00016.75
7.0.60.0230.07321.70
7.0.50.0170.07317.82
7.0.40.0130.06320.23
7.0.30.0230.03720.16
7.0.20.0200.08320.04
7.0.10.0070.06020.13
7.0.00.0070.06720.00
5.6.280.0030.05721.08
5.6.210.0100.07020.63
5.6.200.0070.08018.19
5.6.190.0100.04320.34
5.6.180.0230.04020.45
5.6.170.0230.08020.52
5.6.160.0100.08320.54
5.6.150.0000.06318.18
5.6.140.0100.08018.07
5.6.130.0100.08018.22
5.6.120.0130.06021.02
5.6.110.0070.04021.00
5.6.100.0070.08320.96
5.6.90.0100.06720.97
5.6.80.0070.06720.39
5.5.350.0270.07020.39
5.5.340.0000.04317.91
5.5.330.0070.03720.47
5.5.320.0200.04020.29
5.5.310.0130.04720.18
5.5.300.0070.05018.02
5.5.290.0030.08317.98
5.5.280.0030.06020.64
5.5.270.0130.07720.84
5.5.260.0030.04720.89
5.5.250.0000.04320.61
5.5.240.0200.07020.34

preferences:
42.87 ms | 401 KiB | 5 Q