3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = '20230121'; $date_from_format = DateTime::createFromFormat('Ymd', $date, new DateTimeZone('Europe/Berlin')); print_r([ $date_from_format->format('j'), $date_from_format->format('F'), $date_from_format->format('Y'), ]);

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.0110.00416.63
8.3.50.0000.01518.60
8.3.40.0070.00720.47
8.3.30.0090.00618.76
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.180.0140.00716.50
8.2.170.0150.00619.09
8.2.160.0100.00322.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0020.00526.16
8.2.110.0070.00319.30
8.2.100.0070.00417.91
8.2.90.0030.00619.63
8.2.80.0000.00719.25
8.2.70.0080.00017.63
8.2.60.0030.00917.93
8.2.50.0030.00618.07
8.2.40.0060.00318.33
8.2.30.0000.00717.97
8.2.20.0040.00419.32
8.2.10.0130.00317.91
8.2.00.0140.00417.85
8.1.280.0150.00325.92
8.1.270.0000.00724.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.01022.56
8.1.230.0040.00820.82
8.1.220.0080.00017.79
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00817.48
8.1.180.0000.00821.94
8.1.170.0080.00018.84
8.1.160.0040.00418.86
8.1.150.0040.00418.76
8.1.140.0140.00417.55
8.1.130.0130.00417.55
8.1.120.0070.01217.58
8.1.110.0130.00517.63
8.1.100.0130.00517.63
8.1.90.0130.00517.67
8.1.80.0110.00517.57
8.1.70.0140.00617.58
8.1.60.0100.00917.65
8.1.50.0140.00517.61
8.1.40.0140.00617.70
8.1.30.0150.00617.70
8.1.20.0190.00417.64
8.1.10.0110.00817.58
8.1.00.0140.00517.58
8.0.300.0000.00719.98
8.0.290.0060.00316.84
8.0.280.0070.00018.42
8.0.270.0100.00417.02
8.0.260.0090.00716.99
8.0.250.0100.00617.01
8.0.240.0130.00317.00
8.0.230.0090.00517.08
8.0.220.0130.00416.94
8.0.210.0130.00316.98
8.0.200.0130.00317.02
8.0.190.0130.00317.00
8.0.180.0110.00616.97
8.0.170.0100.00517.02
8.0.160.0150.00217.10
8.0.150.0130.00316.90
8.0.140.0110.00516.99
8.0.130.0120.00416.95
8.0.120.0110.00416.97
8.0.110.0130.00216.95
8.0.100.0110.00516.98
8.0.90.0080.01017.01
8.0.80.0130.00317.01
8.0.70.0120.00316.94
8.0.60.0100.00416.90
8.0.50.0090.00516.91
8.0.30.0060.00816.95
8.0.20.0080.00717.05
8.0.10.0060.00817.14

preferences:
35.89 ms | 400 KiB | 5 Q