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->format('j'), $date->format('F'), $date->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.0090.00618.29
8.3.50.0090.00916.75
8.3.40.0130.00020.34
8.3.30.0070.00718.91
8.3.20.0070.00024.18
8.3.10.0070.00024.66
8.3.00.0080.00026.16
8.2.180.0160.00318.41
8.2.170.0100.01019.04
8.2.160.0030.01022.96
8.2.150.0030.00625.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0030.00720.52
8.2.100.0090.00317.95
8.2.90.0080.00019.17
8.2.80.0040.00417.97
8.2.70.0070.00617.60
8.2.60.0050.00317.93
8.2.50.0000.00818.10
8.2.40.0000.00818.08
8.2.30.0000.00717.95
8.2.20.0000.00719.18
8.2.10.0030.00817.97
8.2.00.0120.00418.02
8.1.280.0150.00025.92
8.1.270.0080.00024.66
8.1.260.0000.00826.35
8.1.250.0050.00228.09
8.1.240.0090.00022.20
8.1.230.0110.00017.89
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0060.00317.60
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0040.00418.81
8.1.160.0000.00718.80
8.1.150.0070.00018.71
8.1.140.0110.00517.46
8.1.130.0080.00817.56
8.1.120.0130.00317.62
8.1.110.0080.00817.59
8.1.100.0070.00417.46
8.1.90.0060.00617.44
8.1.80.0060.00617.45
8.1.70.0080.00417.59
8.1.60.0080.00417.59
8.1.50.0080.00417.64
8.1.40.0110.00417.63
8.1.30.0080.00517.62
8.1.20.0160.00317.71
8.1.10.0150.00217.59
8.1.00.0080.00817.46
8.0.300.0000.00718.77
8.0.290.0030.00516.88
8.0.280.0030.00618.38
8.0.270.0060.00617.00
8.0.260.0000.01116.99
8.0.250.0080.00416.95
8.0.240.0060.00617.11
8.0.230.0040.00717.04
8.0.220.0110.00316.98
8.0.210.0110.00316.87
8.0.200.0080.00417.04
8.0.190.0110.00016.97
8.0.180.0130.00317.10
8.0.170.0150.00017.00
8.0.160.0070.01016.98
8.0.150.0080.00616.91
8.0.140.0040.00816.86
8.0.130.0030.00716.95
8.0.120.0090.00617.01
8.0.110.0050.00816.94
8.0.100.0150.00017.09
8.0.90.0080.00816.86
8.0.80.0100.00716.88
8.0.70.0120.00016.88
8.0.60.0150.00017.04
8.0.50.0080.00816.91
8.0.30.0150.00216.90
8.0.20.0080.00816.95
8.0.10.0110.00017.12

preferences:
36.33 ms | 401 KiB | 5 Q