3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Prior 8.1 for php +1 month https://www.php.net/manual/en/datetime.examples-arithmetic.php function printDiff($tz) { $d1 = new \DateTime("2015-06-01", new \DateTimeZone($tz)); $d2 = new \DateTime("2015-07-01", new \DateTimeZone($tz)); $diff = $d1->diff($d2); print($diff->format("Start: " . ((new \DateTime('@'.($d1->format("U"))))->format("Y-m-d H:i:s")) . " End: " . ((new \DateTime('@'.($d2->format("U"))))->format("Y-m-d H:i:s")) . " Year: %Y Month: %M Day: %D") .PHP_EOL); } \printDiff("UTC"); \printDiff("Australia/Melbourne");

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.4.120.0050.00324.22
8.4.110.0070.00519.17
8.4.100.0100.00817.80
8.4.90.0120.00820.46
8.4.80.0120.00820.59
8.4.70.0110.00919.01
8.4.60.0100.01120.37
8.4.50.0030.00618.73
8.4.40.0100.00319.47
8.4.30.0090.00018.88
8.4.20.0080.01220.72
8.4.10.0170.00019.98
8.3.250.0110.00718.97
8.3.240.0140.00719.07
8.3.230.0120.00716.85
8.3.220.0080.00918.90
8.3.210.0130.00516.66
8.3.200.0040.00516.63
8.3.190.0110.00817.10
8.3.180.0080.00716.84
8.3.170.0000.00817.13
8.3.160.0120.00618.68
8.3.150.0090.00920.41
8.3.140.0060.01319.27
8.3.130.0040.00416.87
8.3.120.0090.00018.91
8.3.110.0030.00620.94
8.3.100.0070.00324.06
8.3.90.0070.00326.77
8.3.80.0040.01119.36
8.3.70.0040.01118.45
8.3.60.0120.00318.52
8.3.50.0080.00816.49
8.3.40.0140.00718.96
8.3.30.0140.00018.80
8.3.20.0070.00024.18
8.3.10.0060.00324.66
8.3.00.0050.00326.16
8.2.290.0130.00617.07
8.2.280.0120.00618.68
8.2.270.0160.00317.43
8.2.260.0050.00316.75
8.2.250.0080.00016.55
8.2.240.0090.00018.90
8.2.230.0040.00422.58
8.2.220.0080.00037.54
8.2.210.0110.00726.77
8.2.200.0030.00618.88
8.2.190.0090.00616.88
8.2.180.0000.01525.92
8.2.170.0120.00319.08
8.2.160.0100.00322.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00326.16
8.2.110.0000.01021.17
8.2.100.0090.00318.03
8.2.90.0080.00017.97
8.2.80.0050.00319.03
8.2.70.0100.00017.75
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0000.00718.16
8.2.30.0000.00818.14
8.2.20.0040.00418.39
8.2.10.0070.00019.26
8.2.00.0040.00419.45
8.1.330.0140.00616.28
8.1.320.0090.01016.35
8.1.310.0040.00416.82
8.1.300.0060.01316.39
8.1.290.0100.00030.84
8.1.280.0180.00025.92
8.1.270.0120.00923.65
8.1.260.0040.00426.35
8.1.250.0080.00628.09
8.1.240.0090.00022.62
8.1.230.0060.00620.97
8.1.220.0040.00417.75
8.1.210.0030.00518.96
8.1.200.0030.00617.60
8.1.190.0060.00317.48
8.1.180.0060.00318.10
8.1.170.0050.00318.63
8.1.160.0000.00819.04
8.1.150.0000.00819.02
8.1.140.0070.00019.05
8.1.130.0000.00717.61
8.1.120.0040.00417.79
8.1.110.0000.00817.70
8.1.100.0030.00517.61
8.1.90.0020.00517.71
8.1.80.0040.00417.66
8.1.70.0050.00217.75
8.1.60.0000.00817.71
8.1.50.0060.00317.75
8.1.40.0060.00617.74
8.1.30.0040.00417.87
8.1.20.0030.00517.77
8.1.10.0000.00817.79
8.1.00.0030.00517.59
8.0.300.0000.00819.89
8.0.290.0040.00416.88
8.0.280.0000.00818.53
8.0.270.0030.00318.20
8.0.260.0050.00317.02
8.0.250.0040.00417.27
8.0.240.0040.00417.22
8.0.230.0040.00417.23
8.0.220.0000.00717.19
8.0.210.0000.00817.14
8.0.200.0000.00617.09
8.0.190.0000.00817.21
8.0.180.0090.00017.18
8.0.170.0060.00317.19
8.0.160.0070.00017.12
8.0.150.0040.00417.05
8.0.140.0000.00716.98
8.0.130.0000.00513.45
8.0.120.0080.00017.03
8.0.110.0040.00417.01
8.0.100.0050.00217.18
8.0.90.0000.00717.27
8.0.80.0080.00917.13
8.0.70.0060.01617.20
8.0.60.0150.00617.05
8.0.50.0130.00317.02
8.0.30.0030.01317.14
8.0.20.0040.01217.22
8.0.10.0060.00917.17
8.0.00.0030.01417.30
7.4.330.0050.00015.55
7.4.320.0040.00416.83
7.4.300.0080.00016.81
7.4.290.0030.00516.68
7.4.280.0000.00816.66
7.4.270.0030.00316.64
7.4.260.0060.00013.52
7.4.250.0000.00716.64
7.4.240.0050.00216.80
7.4.230.0000.00816.69
7.4.220.0030.00316.78
7.4.210.0140.00416.72
7.4.200.0100.00716.75
7.4.190.0150.00616.73
7.4.180.0080.01116.73
7.4.160.0030.01816.98
7.4.150.0040.01116.68
7.4.140.0100.01016.69
7.4.130.0120.00816.59
7.4.120.0060.01016.61
7.4.110.0060.00816.60
7.4.100.0000.01516.64
7.4.90.0050.01016.70
7.4.80.0060.00816.72
7.4.70.0060.00916.73
7.4.60.0030.01116.83
7.4.50.0030.01016.78
7.4.40.0000.01316.76
7.4.30.0060.00716.73
7.4.20.0030.01016.73
7.4.10.0080.00816.68
7.4.00.0030.01016.84
7.3.330.0000.00816.52
7.3.320.0050.00013.41
7.3.310.0040.00416.34
7.3.300.0030.00316.57
7.3.290.0060.00916.47
7.3.280.0040.01216.56
7.3.270.0090.00616.51
7.3.260.0100.00616.52
7.3.250.0080.00816.48
7.3.240.0060.00916.59
7.3.230.0150.00016.46
7.3.220.0070.00716.50
7.3.210.0040.01116.55
7.3.200.0110.00416.49
7.3.190.0120.00616.56
7.3.180.0110.00316.52
7.3.170.0070.01116.52
7.3.160.0040.01116.53
7.3.150.0040.01116.51
7.3.140.0000.01416.45
7.3.130.0070.01016.55
7.3.120.0090.00616.47
7.3.110.0090.00916.40
7.3.100.0090.00916.40
7.3.90.0100.00316.60
7.3.80.0070.00716.39
7.3.70.0140.00716.56
7.3.60.0060.00916.65
7.3.50.0090.00616.64
7.3.40.0100.00316.63
7.3.30.0090.00616.55
7.3.20.0070.00716.58
7.3.10.0060.01216.64
7.3.00.0030.01316.54

preferences:
28.82 ms | 403 KiB | 5 Q