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'); echo $start->format('Y-m-d H:i:s'); echo $end->format('Y-m-d H:i:s'); 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.0100.00716.88
8.3.50.0100.01016.36
8.3.40.0110.00418.92
8.3.30.0070.00718.89
8.3.20.0050.00220.39
8.3.10.0080.00023.53
8.3.00.0030.00623.48
8.2.180.0100.01018.38
8.2.170.0100.00722.96
8.2.160.0100.00320.32
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0060.00321.00
8.2.120.0120.00626.35
8.2.110.0030.00620.50
8.2.100.0080.00419.27
8.2.90.0040.00419.26
8.2.80.0040.00417.97
8.2.70.0060.00317.88
8.2.60.0030.00617.80
8.2.50.0060.00318.09
8.2.40.0040.00420.59
8.2.30.0040.00419.49
8.2.20.0070.00019.72
8.2.10.0000.00818.21
8.2.00.0070.00018.23
8.1.280.0140.00725.92
8.1.270.0180.00022.17
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0100.00023.81
8.1.230.0060.00620.95
8.1.220.0040.00417.80
8.1.210.0060.00318.77
8.1.200.0050.00517.60
8.1.190.0080.00017.48
8.1.180.0080.00018.10
8.1.170.0040.00418.76
8.1.160.0050.00220.88
8.1.150.0050.00320.70
8.1.140.0050.00319.63
8.1.130.0000.00717.72
8.1.120.0050.00217.65
8.1.110.0000.00717.61
8.1.100.0120.00317.74
8.1.90.0040.00417.71
8.1.80.0040.00417.65
8.1.70.0000.00817.74
8.1.60.0050.00217.80
8.1.50.0000.00917.62
8.1.40.0040.00417.71
8.1.30.0000.00917.88
8.1.20.0040.00417.79
8.1.10.0040.00417.69
8.1.00.0060.00617.63
8.0.300.0050.00318.84
8.0.290.0000.00816.88
8.0.280.0030.00318.59
8.0.270.0030.00517.40
8.0.260.0070.00017.45
8.0.250.0040.00417.14
8.0.240.0080.00017.24
8.0.230.0070.00017.21
8.0.220.0030.00317.04
8.0.210.0000.00717.16
8.0.200.0000.00717.22
8.0.190.0000.00817.17
8.0.180.0050.00317.09
8.0.170.0000.00817.14
8.0.160.0000.00817.05
8.0.150.0050.00217.09
8.0.140.0030.00517.15
8.0.130.0050.00013.52
8.0.120.0040.00417.05
8.0.110.0000.00917.14
8.0.100.0020.00517.14
8.0.90.0000.00717.19
8.0.80.0090.02017.08
8.0.70.0000.00716.98
8.0.60.0040.00417.06
8.0.50.0050.00217.21
8.0.30.0100.00917.39
8.0.20.0140.00517.51
8.0.10.0000.00817.24
8.0.00.0090.01217.05
7.4.330.0030.00316.90
7.4.320.0060.00016.81
7.4.300.0030.00316.83
7.4.290.0000.00716.73
7.4.280.0000.00716.75
7.4.270.0000.00716.71
7.4.260.0000.00716.73
7.4.250.0000.00716.68
7.4.240.0070.00016.75
7.4.230.0070.00016.89
7.4.220.0110.00616.76
7.4.210.0120.00316.80
7.4.200.0040.00416.79
7.4.160.0100.00616.66
7.4.150.0110.00717.40
7.4.140.0090.01017.86
7.4.130.0130.00716.77
7.4.120.0080.00916.85
7.4.110.0100.00616.75
7.4.100.0060.01216.75
7.4.90.0040.01416.54
7.4.80.0090.00919.39
7.4.70.0040.01316.78
7.4.60.0110.00616.73
7.4.50.0090.00616.59
7.4.40.0070.01016.64
7.4.30.0120.00916.77
7.4.00.0030.01415.28
7.3.330.0000.00613.32
7.3.320.0060.00013.46
7.3.310.0050.00316.62
7.3.300.0070.00016.47
7.3.290.0080.01016.51
7.3.280.0070.01116.53
7.3.270.0080.00817.40
7.3.260.0170.00016.73
7.3.250.0110.00616.64
7.3.240.0120.00516.79
7.3.230.0040.01416.79
7.3.210.0120.00816.33
7.3.200.0000.02119.39
7.3.190.0030.01916.59
7.3.180.0140.00716.61
7.3.170.0100.00716.89
7.3.160.0100.00716.61
7.2.330.0100.00716.58
7.2.320.0130.01016.89
7.2.310.0130.00316.54
7.2.300.0090.00916.82
7.2.290.0100.01616.73
7.2.60.0040.01216.91
7.2.00.0000.01519.80
7.1.200.0080.00816.04
7.1.100.0120.00918.40
7.1.70.0100.00617.22
7.1.60.0120.00919.40
7.1.50.0070.01516.89
7.1.00.0000.07722.40
7.0.200.0260.01016.60
7.0.60.0200.07321.62
7.0.50.0130.06717.81
7.0.40.0100.08320.30
7.0.30.0170.04320.33
7.0.20.0130.08320.09
7.0.10.0100.09020.00
7.0.00.0130.08020.30
5.6.280.0130.05721.10
5.6.210.0070.07320.77
5.6.200.0070.07718.09
5.6.190.0000.04720.42
5.6.180.0230.04320.61
5.6.170.0270.07320.62
5.6.160.0000.06720.37
5.6.150.0030.04018.09
5.6.140.0100.07718.18
5.6.130.0070.05318.21
5.6.120.0070.08721.13
5.6.110.0070.04021.02
5.6.100.0100.08021.14
5.6.90.0030.08721.13
5.6.80.0070.05320.38
5.5.350.0370.07020.41
5.5.340.0100.03317.97
5.5.330.0130.08020.57
5.5.320.0500.07320.17
5.5.310.0100.04720.20
5.5.300.0030.06317.97
5.5.290.0030.08017.95
5.5.280.0200.06720.80
5.5.270.0000.07320.82
5.5.260.0030.08720.89
5.5.250.0030.04020.58
5.5.240.0170.05720.20

preferences:
39.42 ms | 400 KiB | 5 Q