3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { function foo($a = 1) { echo __METHOD__;} static function bar($a = 1) { echo __METHOD__;} } $x->foo(); // classic method call $x::foo(); // static method call on object X::foo(); // static method call on class name ?>

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.10.0100.00517.99
8.3.140.0070.01316.76
8.3.130.0140.00316.45
8.3.50.0040.01516.53
8.2.260.0100.00716.48
8.2.250.0110.00716.77

preferences:
28.38 ms | 403 KiB | 5 Q