3v4l.org

run code in 300+ 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.30.0120.00618.40
8.5.20.0110.00718.59
8.4.180.0120.01021.27
8.4.170.0130.00721.56
8.4.90.0110.01019.54
8.3.300.0050.00419.88
8.3.180.0140.00516.65
8.3.50.0140.00418.46

preferences:
51.9 ms | 517 KiB | 5 Q