3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function foo() { var_dump($this); } } class B extends A { public function getClosure() { return function () { A::foo(); }; } } $b = new B(); $b->getClosure()();

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.20.0070.01117.27
8.5.10.0100.00716.73
8.4.170.0140.00720.56
8.4.160.0140.00822.24
8.4.140.0120.00917.61
8.4.90.0100.00917.77
8.3.300.0150.00618.45
8.3.290.0120.00919.96
8.3.180.0080.00216.66
8.3.50.0050.00418.49

preferences:
27.5 ms | 403 KiB | 5 Q