3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_TIME, 'de_DE'); $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.70.0040.01516.72
8.3.60.0120.00318.55
8.3.50.0060.00916.82
8.3.40.0070.00720.84
8.3.30.0040.01119.21
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0070.00026.16
8.2.190.0000.01418.91
8.2.180.0190.00017.25
8.2.170.0100.01319.29
8.2.160.0120.00322.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0090.00026.16
8.2.110.0030.00722.51
8.2.100.0110.00018.22
8.2.90.0060.00320.13
8.2.80.0060.00319.53
8.2.70.0100.00318.13
8.2.60.0070.00718.29
8.2.50.0040.00418.25
8.2.40.0050.00318.53
8.2.30.0040.00418.46
8.2.20.0000.00719.50
8.2.10.0060.00618.21
8.2.00.0140.00418.12
8.1.280.0070.00725.92
8.1.270.0110.00724.66
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0100.01424.16
8.1.230.0080.00421.10
8.1.220.0040.00418.04
8.1.210.0050.00319.22
8.1.200.0030.00617.60
8.1.190.0000.00817.60
8.1.180.0040.00422.37
8.1.170.0060.00318.91
8.1.160.0040.00419.18
8.1.150.0000.00819.12
8.1.140.0170.00017.85
8.1.130.0100.00717.76
8.1.120.0160.00318.00
8.1.110.0130.00617.90
8.1.100.0110.00617.95
8.1.90.0180.00017.83
8.1.80.0150.00818.05
8.1.70.0130.00717.91
8.1.60.0190.00518.07
8.1.50.0170.00718.01
8.1.40.0160.00618.02
8.1.30.0160.00218.02
8.1.20.0200.00018.03
8.1.10.0190.00018.09
8.1.00.0140.00518.02
8.0.300.0040.00420.36
8.0.290.0080.00017.25
8.0.280.0070.00018.95
8.0.270.0140.00317.45
8.0.260.0170.00017.45
8.0.250.0150.00217.36
8.0.240.0140.00317.45
8.0.230.0090.00417.46
8.0.220.0050.01117.25
8.0.210.0120.00417.25
8.0.200.0050.01517.40
8.0.190.0170.00017.35
8.0.180.0190.00017.55
8.0.170.0110.00417.55
8.0.160.0160.00017.45
8.0.150.0110.00517.29
8.0.140.0090.00917.28
8.0.130.0080.00917.22
8.0.120.0120.00617.45
8.0.110.0130.00317.48
8.0.100.0140.00617.36
8.0.90.0110.00617.37
8.0.80.0100.00717.38
8.0.70.0100.00717.25
8.0.60.0080.00817.41
8.0.50.0190.00017.46
8.0.30.0140.00217.32
8.0.20.0090.00917.55
8.0.10.0090.00917.54

preferences:
39.89 ms | 401 KiB | 5 Q