3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Subclass extends DateTimeImmutable { } $foo = new Subclass('2023-01-01 12:12:13'); $foo2 = $foo->modify('+7 days'); /** @psalm-trace $foo2 */ echo get_class($foo2);

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.4.120.0110.00920.63
8.4.110.0060.00618.75
8.4.100.0110.01017.67
8.4.90.0130.00820.39
8.4.80.0040.00419.10
8.4.70.0060.00220.80
8.4.60.0150.00419.12
8.4.50.0100.00918.13
8.4.40.0130.00724.17
8.4.30.0040.00418.98
8.4.20.0120.00325.82
8.4.10.0090.00023.80
8.3.250.0100.00918.79
8.3.240.0100.01016.58
8.3.230.0090.01016.86
8.3.220.0070.00818.84
8.3.210.0100.00816.66
8.3.200.0040.00516.78
8.3.190.0110.00717.12
8.3.180.0090.00416.98
8.3.170.0000.00818.84
8.3.160.0100.00718.77
8.3.150.0070.01016.66
8.3.140.0070.01120.59
8.3.130.0040.00418.21
8.3.120.0040.00420.61
8.3.110.0080.00420.94
8.3.100.0000.00824.06
8.3.90.0030.00526.77
8.3.80.0060.00317.97
8.3.70.0140.01016.61
8.3.60.0130.01016.75
8.3.50.0090.00618.54
8.3.40.0120.00620.27
8.3.30.0110.00418.79
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0000.00826.16
8.2.290.0070.00422.30
8.2.280.0080.01018.38
8.2.270.0090.00616.70
8.2.260.0050.00316.71
8.2.250.0110.00716.57
8.2.240.0030.00618.96
8.2.230.0030.00622.58
8.2.220.0060.00637.54
8.2.210.0060.00826.77
8.2.200.0100.00017.00
8.2.190.0080.00818.66
8.2.180.0140.00718.26
8.2.170.0100.01019.21
8.2.160.0160.00322.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.74
8.2.110.0030.00719.42
8.2.100.0070.00717.84
8.2.90.0040.00419.34
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0040.00418.05
8.2.50.0090.00019.47
8.2.40.0000.00922.20
8.2.30.0080.00018.10
8.2.20.0070.00019.25
8.2.10.0040.00418.02
8.2.00.0080.00220.42
8.1.330.0070.00821.74
8.1.320.0040.00616.21
8.1.310.0050.00316.39
8.1.300.0100.00716.52
8.1.290.0030.00630.84
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00420.96
8.1.230.0110.00017.77
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.48
8.1.190.0080.00019.26
8.1.180.0050.00318.10
8.1.170.0000.00818.57
8.1.160.0080.00022.29
8.1.150.0000.00818.86
8.1.140.0060.00317.51
8.1.130.0050.00620.16
8.1.120.0080.00420.15
8.1.110.0070.00520.15
8.1.100.0060.00519.23
8.1.90.0090.00219.30
8.1.80.0060.00519.24
8.1.70.0080.00419.70
8.1.60.0080.00519.82
8.1.50.0060.00719.70
8.1.40.0110.00319.74
8.1.30.0050.00819.80
8.1.20.0070.00619.36
8.1.10.0100.00419.37
8.1.00.0080.00619.80
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0000.00718.50
8.0.270.0000.00817.46
8.0.260.0080.00219.08
8.0.250.0080.00418.71
8.0.240.0070.00418.29
8.0.230.0100.00218.65
8.0.220.0080.00318.60
8.0.210.0060.00618.63
8.0.200.0070.00518.64
8.0.190.0120.00118.65
8.0.180.0010.01018.62
8.0.170.0090.00218.65
8.0.160.0100.00218.71
8.0.150.0040.00818.58
8.0.140.0040.00618.59
8.0.130.0070.00318.61
8.0.120.0090.00218.57
8.0.110.0060.00618.59
8.0.100.0110.00218.62
8.0.90.0080.00518.17
8.0.80.0100.00318.14
8.0.70.0070.00618.16
8.0.60.0100.00318.12
8.0.50.0090.00418.14
8.0.30.0110.00318.60
8.0.20.0090.00618.19
8.0.10.0110.00418.29

preferences:
28.19 ms | 403 KiB | 5 Q