3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = new class () { public string $foo = 'bar'; protected string $baz = 'qux'; private string $xyz = 'xyz'; }; $ao = new ArrayObject($o, ArrayObject::ARRAY_AS_PROPS); var_dump((object) $ao->getArrayCopy());

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.0040.00520.66
8.4.110.0120.00718.73
8.4.100.0130.00617.85
8.4.90.0120.00917.57
8.4.80.0150.00617.65
8.4.70.0010.00719.64
8.4.60.0050.00419.62
8.4.50.0130.01018.68
8.4.40.0070.01317.45
8.4.30.0070.01420.42
8.4.20.0070.01121.48
8.4.10.0440.00817.40
8.3.250.0120.00719.06
8.3.240.0090.01016.51
8.3.230.0100.00916.59
8.3.220.0100.00616.57
8.3.210.0050.00316.41
8.3.200.0100.00916.61
8.3.190.0130.00617.09
8.3.180.0090.01018.83
8.3.170.0090.00916.81
8.3.160.0060.01218.28
8.3.150.0000.01816.93
8.3.140.0040.01118.23
8.3.130.0050.00318.22
8.3.50.0050.00316.61
8.2.290.0110.00720.51
8.2.280.0070.01318.31
8.2.270.0060.01316.87
8.2.260.0040.01116.46
8.2.250.0070.01016.51
8.1.320.0090.00816.05

preferences:
27.39 ms | 403 KiB | 5 Q