3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startdate_2015 = strtotime(date('2015-03-25')); $enddate_2015 = strtotime(date("2015-03-28")); $nights_2015 = floor($enddate_2015 - $startdate_2015); echo 'nights in 2015: '.$nights_2015 = floor($nights_2015/(60*60*24)); echo '<p>'; $startdate_2016 = strtotime(date('2016-03-25')); $enddate_2016 = strtotime(date("2016-03-28")); $nights_2016 = floor($enddate_2016 - $startdate_2016); echo 'nights in 2016: '.$nights_2016 = floor($nights_2016/(60*60*24)); echo '<p>'; $startdate_2017 = strtotime(date('2017-03-25')); $enddate_2017 = strtotime(date("2017-03-28")); $nights_2017 = floor($enddate_2017 - $startdate_2017); echo 'nights in 2017: '.$nights_2017 = floor($nights_2017/(60*60*24)); echo '<p>'; $startdate_2018 = strtotime(date('2018-03-25')); $enddate_2018 = strtotime(date("2018-03-28")); $nights_2018 = floor($enddate_2018 - $startdate_2018); echo 'nights in 2018: '.$nights_2018 = floor($nights_2018/(60*60*24)); echo '<p>'; $startdate_2019 = strtotime(date('2019-03-25')); $enddate_2019 = strtotime(date("2019-03-28")); $nights_2019 = floor($enddate_2019 - $startdate_2019); echo 'nights in 2019: '.$nights_2019 = floor($nights_2019/(60*60*24)); echo '<p>';

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.0040.01418.43
8.3.50.0040.01116.28
8.3.40.0120.00618.88
8.3.30.0110.00318.73
8.3.20.0040.00421.98
8.3.10.0080.00023.82
8.3.00.0050.00322.13
8.2.180.0000.01416.63
8.2.170.0110.00422.96
8.2.160.0070.00720.27
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0100.00026.16
8.2.120.0070.00019.95
8.2.110.0030.00619.24
8.2.100.0080.00417.84
8.2.90.0030.00519.91
8.2.80.0040.00418.22
8.2.70.0040.00418.18
8.2.60.0050.00317.88
8.2.50.0040.00418.34
8.2.40.0040.00420.59
8.2.30.0000.00820.60
8.2.20.0000.00718.11
8.2.10.0040.00418.26
8.2.00.0070.00018.07
8.1.280.0120.00325.92
8.1.270.0000.00822.11
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00922.67
8.1.230.0090.00322.65
8.1.220.0000.00817.78
8.1.210.0030.00618.79
8.1.200.0050.00317.61
8.1.190.0030.00717.63
8.1.180.0000.00818.10
8.1.170.0000.00818.67
8.1.160.0000.00918.96
8.1.150.0000.00722.07
8.1.140.0050.00317.69
8.1.130.0030.00319.26
8.1.120.0060.00317.63
8.1.110.0040.00417.67
8.1.100.0000.00817.54
8.1.90.0000.00717.61
8.1.80.0000.00817.54
8.1.70.0000.00817.66
8.1.60.0070.00017.71
8.1.50.0000.00817.68
8.1.40.0040.00417.58
8.1.30.0040.00417.81
8.1.20.0000.00817.74
8.1.10.0030.00517.63
8.1.00.0050.00217.70
8.0.300.0000.00720.09
8.0.290.0060.00316.88
8.0.280.0030.00518.52
8.0.270.0000.00717.38
8.0.260.0000.00817.11
8.0.250.0040.00417.26
8.0.240.0040.00417.21
8.0.230.0030.00517.24
8.0.220.0040.00417.16
8.0.210.0070.00017.08
8.0.200.0040.00417.12
8.0.190.0070.00017.22
8.0.180.0040.00417.21
8.0.170.0060.00317.09
8.0.160.0040.00417.21
8.0.150.0060.00317.00
8.0.140.0040.00416.95
8.0.130.0030.00313.52
8.0.120.0020.00517.11
8.0.110.0040.00417.07
8.0.100.0000.00817.17
8.0.90.0040.00417.01
8.0.80.0060.00917.14
8.0.70.0000.00717.17
8.0.60.0090.00016.98
8.0.50.0020.00517.22
8.0.30.0110.00717.41
8.0.20.0060.02017.40
8.0.10.0070.00017.20
8.0.00.0110.00917.01
7.4.330.0000.00615.55
7.4.320.0000.00816.58
7.4.300.0040.00416.75
7.4.290.0070.00016.57
7.4.280.0030.00516.65
7.4.270.0030.00316.65
7.4.260.0000.00716.64
7.4.250.0040.00416.53
7.4.240.0000.00716.65
7.4.230.0040.00416.78
7.4.220.0030.00516.75
7.4.210.0000.01516.62
7.4.200.0040.00416.81
7.4.160.0080.01116.65
7.4.140.0140.00817.86
7.4.130.0040.01416.55
7.4.120.0090.00916.68
7.4.110.0130.00616.63
7.4.100.0080.00816.75
7.4.90.0070.01016.82
7.4.80.0090.00919.39
7.4.70.0140.00916.64
7.4.60.0000.01516.69
7.4.50.0040.01416.63
7.4.40.0060.01116.56
7.4.00.0030.01414.97
7.3.330.0030.00313.37
7.3.320.0060.00013.37
7.3.310.0040.00416.66
7.3.300.0030.00316.45
7.3.290.0080.00716.53
7.3.280.0110.00516.54
7.3.260.0110.00716.64
7.3.240.0070.01016.72
7.3.230.0030.01516.94
7.3.210.0100.00716.77
7.3.200.0000.01716.90
7.3.190.0090.00616.83
7.3.180.0070.00716.63
7.3.170.0060.01616.79
7.3.160.0030.01716.84
7.3.10.0080.00416.72
7.3.00.0100.01016.56
7.2.330.0120.00616.96
7.2.320.0040.01416.74
7.2.310.0110.01216.73
7.2.300.0120.00817.07
7.2.290.0090.00917.13
7.2.130.0110.00617.02
7.2.120.0060.01016.79
7.2.110.0120.00816.88
7.2.100.0160.00316.51
7.2.90.0070.00716.98
7.2.80.0170.00017.05
7.2.70.0070.01017.08
7.2.60.0050.01017.13
7.2.50.0140.00817.23
7.2.40.0160.00417.14
7.2.30.0070.01518.41
7.2.20.0100.01218.56
7.2.10.0120.01318.38
7.2.00.0070.01418.37
7.1.250.0070.00715.82
7.1.200.0100.00315.79
7.1.150.0100.01117.87
7.1.140.0090.01517.84
7.1.130.0410.01317.99
7.1.120.0110.01117.78
7.1.110.0080.01617.36
7.1.100.0120.01117.37
7.1.90.0140.01117.27
7.1.80.0120.00817.36
7.1.70.0130.00716.25
7.1.60.0280.01634.42
7.1.50.0280.01134.18
7.1.40.0330.01833.54
7.1.30.0370.01633.63
7.1.20.0320.01833.86
7.1.10.0060.01215.77
7.1.00.0100.01115.80

preferences:
63.48 ms | 400 KiB | 5 Q