3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set("UTC"); $dt1 = new DateTime("2012-06-25"); $dt2 = new DateTime("2012-07-27"); $dt3 = new DateTime("2012-07-02"); $iv = $dt1->diff($dt2); var_dump($iv); $dt4 = $dt3->add($iv); echo $dt4->format("c");

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.1.20.0040.00417.61
8.1.10.0030.00517.62
8.1.00.0080.00017.52
8.0.150.0040.00416.95
8.0.140.0070.00016.83
8.0.130.0030.00313.36
8.0.120.0060.00316.82
8.0.110.0040.00416.90
8.0.100.0080.00016.84
8.0.90.0040.00416.80
8.0.80.0050.00216.90
8.0.70.0040.00416.93
8.0.60.0070.00016.83
8.0.50.0030.00516.87
8.0.30.0070.00016.85
8.0.20.0050.00316.91
8.0.10.0040.00417.10
8.0.00.0000.00916.97
7.4.270.0070.00016.52
7.4.260.0050.00013.20
7.4.250.0000.00716.44
7.4.240.0000.00716.42
7.4.230.0000.00716.61
7.4.220.0000.00716.61
7.4.210.0030.00516.56
7.4.200.0000.00716.58
7.4.190.0040.00416.43
7.4.180.0000.00816.57
7.4.160.0020.00516.69
7.4.150.0050.00316.42
7.4.140.0000.00716.49
7.4.130.0040.00416.45
7.4.120.0000.00716.40
7.4.110.0000.00816.40
7.4.100.0050.00316.62
7.4.90.0080.00016.40
7.4.80.0000.00816.36
7.4.70.0000.00716.55
7.4.60.0070.00016.57
7.4.50.0060.00316.29
7.4.40.0040.00416.33
7.4.30.0000.00816.49
7.4.20.0000.00716.46
7.4.10.0050.00216.47
7.4.00.0040.00416.54
7.3.330.0030.00316.10
7.3.320.0060.00013.15
7.3.310.0080.00016.14
7.3.300.0080.00016.23
7.3.290.0030.00616.46
7.3.280.0070.00016.35
7.3.270.0070.00016.27
7.3.260.0030.00316.35
7.3.250.0000.00716.10
7.3.240.0000.00816.34
7.3.230.0030.00316.24
7.3.220.0040.00416.28
7.3.210.0000.00716.11
7.3.200.0000.00716.20
7.3.190.0000.00716.16
7.3.180.0050.00216.05
7.3.170.0000.00716.21
7.3.160.0030.00316.21
7.3.150.0070.00016.29
7.3.140.0000.00716.21
7.3.130.0030.00316.05
7.3.120.0040.00416.20
7.3.110.0070.00016.21
7.3.100.0030.00316.22
7.3.90.0000.00716.26
7.3.80.0040.00416.22
7.3.70.0030.00316.39
7.3.60.0070.00016.23
7.3.50.0000.00716.24
7.3.40.0030.00316.52
7.3.30.0030.00316.45
7.3.20.0030.00318.27
7.3.10.0070.00017.98
7.3.00.0000.00717.88

preferences:
42.42 ms | 528 KiB | 13 Q