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-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 && $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.0070.01118.33
8.3.50.0090.00616.49
8.3.40.0180.00018.70
8.3.30.0070.00718.96
8.3.20.0050.00320.34
8.3.10.0050.00323.71
8.3.00.0070.00323.49
8.2.180.0140.00717.00
8.2.170.0070.00722.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0060.00320.89
8.2.120.0040.00426.35
8.2.110.0090.00020.50
8.2.100.0110.00017.93
8.2.90.0050.00319.29
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0030.00618.05
8.2.50.0060.00318.09
8.2.40.0000.00820.54
8.2.30.0040.00419.46
8.2.20.0040.00419.81
8.2.10.0050.00318.08
8.2.00.0000.00818.26
8.1.280.0170.00325.92
8.1.270.0150.00322.23
8.1.260.0000.00728.09
8.1.250.0000.00828.09
8.1.240.0060.00324.04
8.1.230.0110.00017.83
8.1.220.0080.00017.80
8.1.210.0080.00018.77
8.1.200.0040.00417.61
8.1.190.0050.00517.36
8.1.180.0040.00418.10
8.1.170.0030.00618.77
8.1.160.0030.00620.97
8.1.150.0040.00420.77
8.1.140.0040.00419.74
8.1.130.0050.00317.77
8.1.120.0000.00717.74
8.1.110.0080.00017.69
8.1.100.0060.00617.72
8.1.90.0070.00017.69
8.1.80.0030.00517.71
8.1.70.0030.00317.65
8.1.60.0050.00317.76
8.1.50.0060.00317.67
8.1.40.0040.00417.61
8.1.30.0040.00417.85
8.1.20.0080.00017.78
8.1.10.0040.00417.81
8.1.00.0070.00717.67
8.0.300.0050.00319.02
8.0.290.0000.00717.00
8.0.280.0030.00318.54
8.0.270.0040.00417.46
8.0.260.0030.00317.51
8.0.250.0050.00317.30
8.0.240.0040.00417.09
8.0.230.0000.00717.20
8.0.220.0070.00017.19
8.0.210.0000.00717.13
8.0.200.0000.00617.25
8.0.190.0040.00417.18
8.0.180.0040.00417.14
8.0.170.0040.00417.21
8.0.160.0040.00417.10
8.0.150.0030.00517.18
8.0.140.0050.00217.07
8.0.130.0030.00313.49
8.0.120.0040.00417.09
8.0.110.0000.00817.12
8.0.100.0000.00717.23
8.0.90.0040.00417.04
8.0.80.0030.01317.14
8.0.70.0000.00717.00
8.0.60.0000.00717.01
8.0.50.0040.00416.99
8.0.30.0050.01217.28
8.0.20.0100.00817.46
8.0.10.0080.00017.21
8.0.00.0100.00816.96
7.4.330.0000.00516.83
7.4.320.0060.00016.82
7.4.300.0000.00816.70
7.4.290.0030.00316.67
7.4.280.0030.00616.60
7.4.270.0000.00716.71
7.4.260.0040.00416.72
7.4.250.0020.00516.54
7.4.240.0030.00516.82
7.4.230.0030.00316.71
7.4.220.0070.01416.77
7.4.210.0060.00916.79
7.4.200.0040.00416.88
7.4.160.0060.00916.70
7.4.150.0060.01317.40
7.4.140.0120.00917.86
7.4.130.0090.00916.60
7.4.120.0050.01216.80
7.4.110.0130.00316.87
7.4.100.0090.00916.69
7.4.90.0140.00316.70
7.4.80.0030.01419.39
7.4.70.0030.01316.92
7.4.60.0110.00716.91
7.4.50.0070.01016.55
7.4.40.0060.01516.58
7.4.30.0120.00916.75
7.4.00.0120.00315.19
7.3.330.0000.00513.38
7.3.320.0060.00013.23
7.3.310.0000.00716.48
7.3.300.0000.00716.44
7.3.290.0050.01016.50
7.3.280.0040.01416.51
7.3.270.0120.00517.40
7.3.260.0120.01216.54
7.3.250.0100.00816.70
7.3.240.0110.00616.67
7.3.230.0100.01316.58
7.3.210.0070.01016.42
7.3.200.0080.00919.39
7.3.190.0120.00616.59
7.3.180.0060.01516.84
7.3.170.0100.00716.55
7.3.160.0120.00316.65
7.2.330.0080.01116.88
7.2.320.0130.01016.86
7.2.310.0150.00316.88
7.2.300.0160.00017.06
7.2.290.0130.00316.77
7.2.60.0100.00617.16
7.2.00.0040.01119.62
7.1.200.0000.01315.80
7.1.100.0120.00418.41
7.1.70.0100.00017.21
7.1.60.0070.01419.40
7.1.50.0060.01616.88
7.1.00.0000.04322.37
7.0.200.0240.00716.75
7.0.60.0200.04320.08
7.0.50.0070.08017.89
7.0.40.0070.08320.40
7.0.30.0230.03720.00
7.0.20.0170.08720.21
7.0.10.0100.08320.04
7.0.00.0070.08720.00
5.6.280.0000.03721.02
5.6.210.0070.08320.57
5.6.200.0070.08718.13
5.6.190.0100.07320.41
5.6.180.0330.04020.28
5.6.170.0270.07720.71
5.6.160.0130.05720.48
5.6.150.0170.04318.15
5.6.140.0100.07718.20
5.6.130.0030.08718.11
5.6.120.0000.04721.12
5.6.110.0070.09021.14
5.6.100.0130.07720.89
5.6.90.0030.09720.88
5.6.80.0130.06320.47
5.5.350.0230.06320.41
5.5.340.0070.05317.91
5.5.330.0030.04320.43
5.5.320.0270.03320.28
5.5.310.0230.07720.26
5.5.300.0030.04317.98
5.5.290.0030.07317.92
5.5.280.0170.06720.90
5.5.270.0070.08020.80
5.5.260.0200.06020.80
5.5.250.0200.08320.60
5.5.240.0230.06320.15

preferences:
57.07 ms | 400 KiB | 5 Q