3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Madrid'); $start = strtotime('2017-03-26 01:59:00'); $increments = array( '+60 minutes' => '2017-03-26 03:59:00', '+61 minutes' => '2017-03-26 04:00:00', ); echo 'Start: ' . date('r', $start) . PHP_EOL; foreach ($increments as $increment => $expected_string) { echo '>>> ' . $increment . PHP_EOL; $expected_end = strtotime($expected_string); $actual_end = strtotime($increment, $start); echo 'Expected end: ' . date('r', $expected_end) . PHP_EOL; echo 'Actual end: ' . date('r', $actual_end) . PHP_EOL; echo ($expected_end===$actual_end ? 'OK' : 'ERROR') . PHP_EOL; echo 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.01018.56
8.3.50.0150.00318.30
8.3.40.0140.00418.71
8.3.30.0120.00318.79
8.3.20.0000.00720.21
8.3.10.0050.00320.25
8.3.00.0070.00021.75
8.2.180.0030.01216.50
8.2.170.0030.01422.96
8.2.160.0100.00720.35
8.2.150.0000.00724.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0000.00720.01
8.2.110.0050.00519.31
8.2.100.0030.00818.28
8.2.90.0060.00319.22
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0000.00818.16
8.2.50.0080.00018.10
8.2.40.0000.00820.45
8.2.30.0070.00019.29
8.2.20.0050.00318.06
8.2.10.0070.00018.29
8.2.00.0070.00018.41
8.1.280.0100.01025.92
8.1.270.0040.00424.10
8.1.260.0050.00326.35
8.1.250.0000.00928.09
8.1.240.0060.00322.14
8.1.230.0080.00417.77
8.1.220.0000.00817.89
8.1.210.0000.00818.77
8.1.200.0040.00417.60
8.1.190.0040.00417.60
8.1.180.0040.00418.10
8.1.170.0040.00418.76
8.1.160.0040.00418.93
8.1.150.0050.00220.38
8.1.140.0000.00819.66
8.1.130.0070.00019.05
8.1.120.0030.00517.73
8.1.110.0080.00017.71
8.1.100.0000.00717.77
8.1.90.0040.00417.74
8.1.80.0000.00717.58
8.1.70.0030.00317.77
8.1.60.0030.00617.77
8.1.50.0040.00417.76
8.1.40.0000.00817.75
8.1.30.0040.00417.74
8.1.20.0030.00617.84
8.1.10.0030.00617.62
8.1.00.0000.00817.53
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0030.00318.59
8.0.270.0070.00017.12
8.0.260.0040.00420.64
8.0.250.0000.00717.28
8.0.240.0040.00717.20
8.0.230.0000.00717.19
8.0.220.0050.00316.99
8.0.210.0030.00317.05
8.0.200.0030.00317.11
8.0.190.0000.00817.19
8.0.180.0000.00717.24
8.0.170.0040.00417.21
8.0.160.0070.00017.12
8.0.150.0040.00417.22
8.0.140.0040.00417.13
8.0.130.0040.00413.65
8.0.120.0040.00417.18
8.0.110.0040.00417.02
8.0.100.0000.00717.21
8.0.90.0030.00717.00
8.0.80.0050.01017.14
8.0.70.0000.00717.09
8.0.60.0000.00717.05
8.0.50.0050.00217.14
8.0.30.0130.00617.37
8.0.20.0130.01117.42
8.0.10.0040.00417.13
8.0.00.0000.01816.95
7.4.330.0050.00015.55
7.4.320.0030.00316.79
7.4.300.0030.00316.70
7.4.290.0000.00716.65
7.4.280.0050.00216.80
7.4.270.0080.00016.70
7.4.260.0000.00716.69
7.4.250.0040.00416.78
7.4.240.0030.00316.82
7.4.230.0000.00716.81
7.4.220.0110.00716.82
7.4.210.0150.00616.75
7.4.200.0030.00316.64
7.4.160.0070.00916.81
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0080.00916.68
7.4.120.0060.01316.72
7.4.110.0100.00716.73
7.4.100.0130.00316.90
7.4.90.0120.00416.69
7.4.80.0100.00719.39
7.4.70.0070.01016.62
7.4.60.0100.01016.79
7.4.50.0090.00616.77
7.4.40.0120.00316.92
7.4.30.0060.01016.58
7.4.00.0030.01215.15
7.3.330.0060.00013.50
7.3.320.0030.00313.27
7.3.310.0030.00316.48
7.3.300.0000.00716.54
7.3.290.0070.00916.53
7.3.280.0120.00816.51
7.3.270.0100.00717.40
7.3.260.0120.00816.68
7.3.250.0150.00416.61
7.3.240.0080.01316.79
7.3.230.0110.00816.63
7.3.210.0100.00716.76
7.3.200.0090.01216.50
7.3.190.0060.01116.90
7.3.180.0060.01216.72
7.3.170.0060.01016.81
7.3.160.0120.00316.62
7.2.330.0100.00717.00
7.2.320.0070.01716.99
7.2.310.0070.01017.08
7.2.300.0060.01617.02
7.2.290.0110.01116.86
7.2.60.0000.01417.25
7.1.200.0000.01415.84
7.1.70.0000.01017.39
7.1.60.0100.00017.29
7.1.30.2570.07336.48
7.1.20.4130.08736.54
7.1.10.3300.06020.38
7.1.00.4770.06320.57
7.0.200.0070.01017.02
7.0.170.2600.08720.04
7.0.160.3700.07720.07
7.0.150.3670.07720.12
7.0.140.5300.07720.10
7.0.130.4500.07720.20
7.0.120.4470.08720.04
7.0.110.3930.05320.05
7.0.100.4200.09020.08
7.0.90.4230.06720.21
7.0.80.4300.05720.16
7.0.70.2870.05320.02
7.0.60.3670.05020.06
7.0.50.3030.07719.93
7.0.40.3630.07320.05
7.0.30.4000.06020.05
7.0.20.4230.07019.99
7.0.10.4000.06020.09
7.0.00.4230.05720.03

preferences:
62.94 ms | 400 KiB | 5 Q