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; 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.0090.00916.74
8.3.50.0110.00721.14
8.3.40.0110.00719.04
8.3.30.0090.00618.96
8.3.20.0000.00820.20
8.3.10.0040.00423.65
8.3.00.0040.00423.43
8.2.180.0120.00618.79
8.2.170.0040.01122.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00721.07
8.2.120.0180.00026.35
8.2.110.0030.00619.47
8.2.100.0060.00618.05
8.2.90.0000.00819.36
8.2.80.0040.00417.97
8.2.70.0000.00917.75
8.2.60.0040.00418.05
8.2.50.0050.00518.09
8.2.40.0050.00220.58
8.2.30.0050.00219.56
8.2.20.0080.00017.92
8.2.10.0000.00718.16
8.2.00.0040.00418.22
8.1.280.0120.00325.92
8.1.270.0100.01022.26
8.1.260.0000.00728.09
8.1.250.0080.00028.09
8.1.240.0070.00322.46
8.1.230.0040.00717.89
8.1.220.0000.00817.78
8.1.210.0050.00318.77
8.1.200.0000.00917.50
8.1.190.0000.00817.48
8.1.180.0050.00318.10
8.1.170.0080.00018.61
8.1.160.0050.00220.90
8.1.150.0000.00820.70
8.1.140.0060.00319.70
8.1.130.0040.00417.69
8.1.120.0000.00717.68
8.1.110.0060.00317.65
8.1.100.0030.00717.54
8.1.90.0000.00817.72
8.1.80.0040.00417.56
8.1.70.0030.00317.68
8.1.60.0000.00817.64
8.1.50.0030.00617.61
8.1.40.0040.00417.68
8.1.30.0030.00617.86
8.1.20.0080.00017.90
8.1.10.0040.00417.76
8.1.00.0030.00717.80
8.0.300.0040.00418.91
8.0.290.0070.00017.13
8.0.280.0070.00018.50
8.0.270.0060.00317.40
8.0.260.0060.00017.30
8.0.250.0030.00317.31
8.0.240.0000.00817.24
8.0.230.0070.00017.19
8.0.220.0040.00417.05
8.0.210.0000.00717.20
8.0.200.0000.00617.05
8.0.190.0060.00317.28
8.0.180.0080.00017.25
8.0.170.0000.00817.09
8.0.160.0000.00817.29
8.0.150.0030.00317.17
8.0.140.0030.00617.17
8.0.130.0030.00313.44
8.0.120.0050.00317.14
8.0.110.0020.00517.05
8.0.100.0020.00517.02
8.0.90.0040.00417.11
8.0.80.0140.00717.08
8.0.70.0040.00417.03
8.0.60.0040.00417.20
8.0.50.0040.00417.13
8.0.30.0060.01317.27
8.0.20.0110.00917.45
8.0.10.0070.00017.18
8.0.00.0080.01016.99
7.4.330.0000.00516.91
7.4.320.0060.00016.63
7.4.300.0030.00316.77
7.4.290.0030.00316.81
7.4.280.0000.00816.65
7.4.270.0030.00316.66
7.4.260.0030.00316.79
7.4.250.0030.00316.77
7.4.240.0000.00716.71
7.4.230.0000.00716.79
7.4.220.0070.01316.66
7.4.210.0090.00616.72
7.4.200.0070.00016.88
7.4.160.0090.00616.66
7.4.150.0080.00817.40
7.4.140.0100.01317.86
7.4.130.0130.00516.84
7.4.120.0050.01316.81
7.4.110.0100.00616.70
7.4.100.0110.00716.74
7.4.90.0080.00816.73
7.4.80.0070.01419.39
7.4.70.0070.01116.88
7.4.60.0130.00316.91
7.4.50.0120.00016.74
7.4.40.0130.00316.84
7.4.30.0070.01116.77
7.4.00.0100.00615.05
7.3.330.0030.00313.41
7.3.320.0030.00313.22
7.3.310.0000.00916.54
7.3.300.0000.00716.48
7.3.290.0050.01216.47
7.3.280.0090.00616.46
7.3.270.0110.00717.40
7.3.260.0140.00316.84
7.3.250.0090.00816.52
7.3.240.0040.01616.52
7.3.230.0180.00416.61
7.3.210.0130.00316.49
7.3.200.0130.01019.39
7.3.190.0120.00616.78
7.3.180.0140.00416.82
7.3.170.0090.01216.62
7.3.160.0170.00016.69
7.3.10.0000.01116.94
7.3.00.0080.00316.82
7.2.330.0160.00316.93
7.2.320.0080.00816.47
7.2.310.0060.00916.67
7.2.300.0130.00416.53
7.2.290.0110.01416.66
7.2.130.0000.01417.06
7.2.120.0000.01116.88
7.2.110.0050.00517.04
7.2.100.0040.00417.10
7.2.90.0060.00317.02
7.2.80.0030.01316.77
7.2.70.0000.01017.11
7.2.60.0060.00717.00
7.2.50.0100.00617.21
7.2.40.0070.00416.78
7.2.30.0050.00516.88
7.2.20.0030.01017.25
7.2.10.0120.00317.13
7.2.00.0040.00918.43
7.1.250.0090.00315.96
7.1.200.0000.01516.03
7.1.100.0070.01118.18
7.1.70.0000.01216.94
7.1.60.0070.01519.40
7.1.50.0030.01716.85
7.1.00.0000.08022.40
7.0.200.0180.00716.89
7.0.60.0370.06321.67
7.0.50.0130.06717.80
7.0.40.0100.05020.05
7.0.30.0230.04320.00
7.0.20.0200.07320.04
7.0.10.0100.08320.13
7.0.00.0100.07720.09
5.6.280.0130.04720.86
5.6.210.0030.08020.64
5.6.200.0030.05018.19
5.6.190.0030.04320.44
5.6.180.0270.08020.57
5.6.170.0270.08020.41
5.6.160.0230.05720.46
5.6.150.0070.03718.16
5.6.140.0100.04018.15
5.6.130.0070.06718.12
5.6.120.0100.06320.98
5.6.110.0130.07321.04
5.6.100.0030.09021.01
5.6.90.0100.06720.96
5.6.80.0130.07720.38
5.5.350.0270.07720.36
5.5.340.0000.07017.88
5.5.330.0100.07320.43
5.5.320.0270.07020.18
5.5.310.0170.05320.21
5.5.300.0000.04717.98
5.5.290.0130.05018.01
5.5.280.0070.05320.77
5.5.270.0070.08320.72
5.5.260.0000.05020.79
5.5.250.0170.07020.70
5.5.240.0130.03320.07

preferences:
48.95 ms | 401 KiB | 5 Q