3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '20240713T011500Z'; $output = new \DateTimeImmutable($input); var_dump($input, $output);

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.5.10.0120.00518.60
8.5.00.0120.01120.20
8.4.160.0130.01023.86
8.4.150.0020.00014.05
8.4.140.0120.00917.49
8.4.130.0140.00617.99
8.4.120.0110.00820.63
8.4.110.0120.00922.43
8.4.100.0110.00817.93
8.4.90.0090.01017.96
8.4.80.0130.00817.64
8.4.70.0080.01117.59
8.4.60.0090.01124.27
8.4.50.0080.01218.54
8.4.40.0100.01018.71
8.4.30.0100.01119.08
8.4.20.0160.00319.73
8.4.10.0100.01019.14
8.3.280.0130.00818.74
8.3.270.0130.00716.69
8.3.260.0120.00816.68
8.3.250.0100.00518.86
8.3.240.0110.00916.72
8.3.230.0110.00816.63
8.3.220.0110.01016.76
8.3.210.0130.00516.86
8.3.200.0100.00818.81
8.3.190.0090.01017.10
8.3.180.0090.00917.06
8.3.170.0120.00620.85
8.3.160.0130.00616.93
8.3.150.0130.00616.94
8.3.140.0070.00318.84
8.3.130.0090.00018.30
8.3.120.0030.00618.96
8.3.110.0060.00316.91
8.3.100.0090.00016.82
8.3.90.0080.00026.77
8.3.80.0090.00320.37
8.3.70.0130.00716.75
8.3.60.0070.01116.75
8.3.50.0150.00616.51
8.3.40.0180.01117.48
8.3.30.0250.01017.25
8.3.20.0340.00417.38
8.3.10.0270.00917.25
8.3.00.0310.00717.13
8.2.290.0080.00718.70
8.2.280.0130.00616.84
8.2.270.0040.01417.30
8.2.260.0110.00718.59
8.2.250.0050.00318.39
8.2.240.0060.00317.32
8.2.230.0060.00320.94
8.2.220.0060.00324.06
8.2.210.0070.00026.77
8.2.200.0060.00618.38
8.2.190.0130.00316.58
8.2.180.0260.00616.32
8.2.170.0300.00317.63
8.2.160.0340.00417.38
8.2.150.0320.00417.50
8.2.140.0320.00617.25
8.2.130.0290.00817.38
8.2.120.0320.00017.25
8.2.110.0360.00517.38
8.2.100.0370.00417.34
8.2.90.0320.00317.63
8.2.80.0260.01117.25
8.2.70.0310.00617.35
8.2.60.0250.00617.50
8.2.50.0290.00317.36
8.2.40.0300.00317.50
8.2.30.0330.00317.38
8.2.20.0260.00617.50
8.2.10.0210.01517.38
8.2.00.0310.00417.34
8.1.330.0100.00921.74
8.1.320.0090.01015.98
8.1.310.0040.01416.93
8.1.300.0090.00018.06
8.1.290.0060.00330.84
8.1.280.0330.00316.36
8.1.270.0290.01317.36
8.1.260.0290.00717.38
8.1.250.0320.01017.00
8.1.240.0270.00317.00
8.1.230.0310.01017.10
8.1.220.0390.00317.38
8.1.210.0270.00817.10
8.1.200.0270.01217.25
8.1.190.0200.01518.75
8.1.180.0250.00716.86
8.1.170.0150.01918.89
8.1.160.0200.01017.25
8.1.150.0290.01117.35
8.1.140.0350.00517.23
8.1.130.0270.01217.47
8.1.120.0370.00317.25
8.1.110.0360.00417.25
8.1.100.0370.00917.25
8.1.90.0330.00817.11
8.1.80.0350.00317.38
8.1.70.0370.00617.38
8.1.60.0400.00717.38
8.1.50.0390.00417.50
8.1.40.0360.00717.50
8.1.30.0370.00917.47
8.1.20.0370.00717.50
8.1.10.0320.00817.38
8.1.00.0400.00017.49

preferences:
34.88 ms | 403 KiB | 5 Q