3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "\nReproduction\n"; class Legacy {} $a = new Legacy; $a->foo = 'bar'; echo "\nTest with Attribute\n"; #[\AllowDynamicProperties] class TestWithAttribute {} class TestChildOne extends TestWithAttribute {} $testWithAttribute = new TestWithAttribute(); $testWithAttribute->foo = 'bar'; echo "\nTest with Attribute (child class)\n"; $testChildOne = new TestChildOne(); $testChildOne->foo = 'bar'; echo "\nTest extending stdClass\n"; class TestWithStdClass extends stdClass {} class TestChildTwo extends TestWithStdClass {} $testWithAttribute = new TestWithStdClass(); $testWithAttribute->foo = 'bar'; echo "\nTest extending stdClass (child class)\n"; $testChildOne = new TestChildTwo(); $testChildOne->foo = 'bar';

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.00.0130.00820.11
8.4.150.0030.00014.05
8.4.140.0120.00917.52
8.4.130.0120.00717.84
8.4.120.0100.00920.73
8.4.110.0100.01022.23
8.4.100.0120.00817.78
8.4.90.0100.01217.85
8.4.80.0130.00717.71
8.4.70.0060.00618.02
8.4.60.0100.00818.64
8.4.50.0120.00917.66
8.4.40.0100.01019.45
8.4.30.0150.00018.88
8.4.20.0000.01422.60
8.4.10.0100.00623.93
8.3.280.0130.00718.34
8.3.270.0110.00816.69
8.3.260.0060.00216.87
8.3.250.0120.00618.88
8.3.240.0120.00716.43
8.3.230.0120.00716.62
8.3.220.0090.00917.18
8.3.210.0060.00416.60
8.3.200.0040.00516.57
8.3.190.0050.00217.25
8.3.180.0070.00118.88
8.3.170.0140.00017.20
8.3.160.0120.00618.56
8.3.150.0090.00918.99
8.3.140.0110.00718.67
8.3.130.0080.00018.63
8.3.120.0150.00418.63
8.3.110.0060.01016.63
8.3.100.0060.00318.30
8.3.90.0100.01026.77
8.3.80.0090.00016.88
8.3.70.0120.00416.63
8.3.60.0000.01416.50
8.3.50.0120.00320.25
8.3.40.0030.01020.37
8.3.30.0090.00618.84
8.3.20.0090.00024.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.290.0110.00820.37
8.2.280.0130.00718.28
8.2.270.0140.00716.66
8.2.260.0140.00416.70
8.2.250.0130.00716.71
8.2.240.0090.00616.99
8.2.230.0040.01120.94
8.2.220.0090.00624.06
8.2.210.0040.00426.77
8.2.200.0060.00318.29
8.2.190.0070.00716.63
8.2.180.0060.00925.92
8.2.170.0040.01118.90
8.2.160.0110.00422.96
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0060.00320.35
8.2.100.0110.00020.38
8.1.330.0150.00518.34
8.1.320.0120.00815.90
8.1.310.0040.00418.00
8.1.300.0070.00718.74
8.1.290.0030.00630.84
8.1.280.0090.00625.92
8.1.270.0140.00024.66
8.1.260.0070.00026.35
8.1.250.0090.00028.09
8.1.240.0070.00318.88
8.1.230.0070.00320.39

preferences:
30.04 ms | 403 KiB | 5 Q