3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = '20230121'; $date_from_format = DateTime::createFromFormat('Ymd', $date, new DateTimeZone('Asia/Jerusalem')); 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.0030.01318.43
8.3.50.0070.01416.73
8.3.40.0100.00320.18
8.3.30.0090.00619.02
8.3.20.0050.00324.18
8.3.10.0070.00024.66
8.3.00.0070.00026.16
8.2.180.0130.00316.50
8.2.170.0110.00418.87
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00326.16
8.2.110.0090.00019.30
8.2.100.0040.00717.89
8.2.90.0030.00619.35
8.2.80.0000.00817.97
8.2.70.0040.00717.63
8.2.60.0000.00818.05
8.2.50.0080.00018.10
8.2.40.0040.00418.15
8.2.30.0040.00418.07
8.2.20.0000.00819.37
8.2.10.0030.00918.01
8.2.00.0130.00617.80
8.1.280.0150.00325.92
8.1.270.0080.00024.66
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0040.00422.22
8.1.230.0040.00717.70
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0060.00317.22
8.1.190.0000.00917.35
8.1.180.0030.00618.10
8.1.170.0080.00018.71
8.1.160.0000.00819.00
8.1.150.0040.00418.77
8.1.140.0150.00317.44
8.1.130.0140.00517.55
8.1.120.0170.00017.75
8.1.110.0110.00317.57
8.1.100.0000.01117.59
8.1.90.0080.00617.61
8.1.80.0070.00717.67
8.1.70.0080.00417.68
8.1.60.0090.00317.70
8.1.50.0080.00417.68
8.1.40.0080.00617.66
8.1.30.0130.00017.63
8.1.20.0210.00017.63
8.1.10.0120.00617.75
8.1.00.0120.00517.61
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0070.00018.40
8.0.270.0030.00616.91
8.0.260.0050.00617.08
8.0.250.0060.00617.05
8.0.240.0080.00316.95
8.0.230.0060.00617.07
8.0.220.0080.00417.04
8.0.210.0090.00317.00
8.0.200.0060.00616.97
8.0.190.0060.00617.06
8.0.180.0160.00317.06
8.0.170.0070.01117.06
8.0.160.0100.00817.09
8.0.150.0110.00417.01
8.0.140.0080.00516.95
8.0.130.0080.00316.87
8.0.120.0090.00617.01
8.0.110.0140.00016.91
8.0.100.0140.00416.91
8.0.90.0100.01016.87
8.0.80.0190.00517.00
8.0.70.0060.01016.98
8.0.60.0160.00016.98
8.0.50.0080.00816.90
8.0.30.0090.00916.99
8.0.20.0130.00717.05
8.0.10.0120.00917.09

preferences:
51.5 ms | 400 KiB | 5 Q