3v4l.org

run code in 300+ PHP versions simultaneously
<?php $years = [ -25000, 0, 9999, 10000, 25000, ]; foreach ($years as $year) { $dt1 = date_create_from_format('d/m/Y', "22/09/$year"); $dt2 = new \DateTime(); $dt2->setDate($year, 9, 22); var_dump($year, $dt1, $dt2); echo "\n"; }

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.140.0130.00817.88
8.4.130.0130.00817.73
8.4.120.0040.00520.53
8.4.110.0080.00122.42
8.4.100.0110.01018.01
8.4.90.0100.01018.34
8.4.80.0050.00418.49
8.4.70.0090.01117.77
8.4.60.0110.01018.67
8.4.50.0050.00618.68
8.4.40.0090.00617.74
8.4.30.0030.00720.70
8.4.20.0060.01322.58
8.4.10.0060.00322.14
8.3.270.0100.01116.58
8.3.260.0110.01116.74
8.3.250.0080.00818.60
8.3.240.0130.00617.22
8.3.230.0130.00516.68
8.3.220.0040.00418.90
8.3.210.0130.00818.67
8.3.200.0030.00616.54
8.3.190.0030.00518.67
8.3.180.0120.00718.43
8.3.170.0150.00018.75
8.3.160.0040.01416.63
8.3.150.0160.00017.21
8.3.140.0030.00616.75
8.3.130.0130.00318.55
8.3.120.0100.01018.83
8.3.110.0190.01120.94
8.3.100.0100.01024.06
8.3.90.0000.00818.06
8.3.80.0060.00318.25
8.3.70.0150.00616.63
8.3.60.0090.00618.35
8.3.50.0070.01116.85
8.3.40.0120.00321.98
8.3.30.0070.01020.06
8.3.20.0050.00324.18
8.3.10.0080.00024.66
8.3.00.0070.00326.16
8.2.290.0060.00520.32
8.2.280.0070.01318.56
8.2.270.0060.01317.20
8.2.260.0030.00616.68
8.2.250.0080.00016.77
8.2.240.0080.00017.38
8.2.230.0140.00722.58
8.2.220.0160.00437.54
8.2.210.0130.00726.77
8.2.200.0000.00918.43
8.2.190.0100.00616.58
8.2.180.0110.00818.29
8.2.170.0070.01419.08
8.2.160.0030.01322.96
8.2.150.0080.00025.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0090.00320.53
8.2.110.0060.00320.39
8.2.100.0040.00817.84
8.2.90.0000.00819.48
8.2.80.0060.01118.78
8.2.70.0130.00518.44
8.2.60.0150.00518.56
8.2.50.0170.00018.78
8.2.40.0130.00418.55
8.2.30.0100.00718.85
8.2.20.0170.00018.55
8.2.10.0130.00418.84
8.2.00.0090.00918.50
8.1.330.0150.00421.75
8.1.320.0100.00916.40
8.1.310.0100.01016.43
8.1.300.0090.00620.30
8.1.290.0080.00418.88
8.1.280.0080.00825.92
8.1.270.0060.00322.13
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00617.48
8.1.230.0060.00622.50
8.1.220.0050.01118.29
8.1.210.0170.00018.64
8.1.200.0160.00418.38
8.1.190.0060.00318.60
8.1.180.0170.00018.17
8.1.170.0170.00018.54
8.1.160.0170.00018.51
8.1.150.0090.00918.21
8.1.140.0170.00018.50
8.1.130.0100.01018.38
8.1.120.0160.00018.62
8.1.110.0140.00518.55
8.1.100.0110.00820.25
8.1.90.0110.00618.50
8.1.80.0150.00318.40
8.1.70.0130.00318.53
8.1.60.0140.00618.63
8.1.50.0150.00318.44
8.1.40.0120.00618.72
8.1.30.0160.00518.19
8.1.20.0050.01418.75
8.1.10.0150.00318.76
8.1.00.0160.00318.81
8.0.300.0070.00320.06
8.0.290.0210.00017.88
8.0.280.0140.00518.06
8.0.270.0110.00818.04
8.0.260.0080.01017.79
8.0.250.0130.00417.91
8.0.240.0160.00318.02
8.0.230.0170.00017.83
8.0.220.0120.00517.71
8.0.210.0090.00918.04
8.0.200.0000.01717.74
8.0.190.0180.00318.13
8.0.180.0160.00318.13
8.0.170.0140.00318.10
8.0.160.0170.00318.04
8.0.150.0130.00517.95
8.0.140.0150.00417.89
8.0.130.0120.00817.88
8.0.120.0040.01317.85
8.0.110.0100.00617.98
8.0.100.0180.00017.71
8.0.90.0140.00617.92
8.0.80.0170.00517.91
8.0.70.0180.00017.85
8.0.60.0090.00917.92
8.0.50.0110.00817.91
8.0.30.0130.00518.07
8.0.20.0140.00518.07
8.0.10.0170.00218.09

preferences:
32.3 ms | 403 KiB | 5 Q