3v4l.org

run code in 500+ PHP versions simultaneously
<?php class X { private array $code = []; function foo() { return var_export($this->code, true); } } var_dump((new X())->foo());

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.70.0100.00416.70
8.5.60.0040.00316.52
8.5.50.0070.01016.59
8.5.30.0120.00618.40
8.5.20.0110.00718.59
8.4.220.0100.01121.50
8.4.210.0080.01319.55
8.4.180.0120.01021.27
8.4.170.0130.00721.56
8.4.90.0110.01019.54
8.3.310.0090.00818.21
8.3.300.0050.00419.88
8.3.180.0140.00516.65
8.3.50.0140.00418.46
8.2.310.0130.00917.99

preferences:
41.68 ms | 546 KiB | 5 Q