3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $user; public function getUser(): User { return $this->user; } } class FooProxy extends Foo { public function getUser(): User { return yield thingReturningAPromise(); } } echo (new FooProxy())->getUser()->getId(); // returns the result of the promise

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)
7.3.40.0030.00914.61
7.3.30.0030.00714.75
7.3.20.0080.01316.46
7.3.10.0110.00916.52
7.3.00.0030.00716.46
7.2.170.0100.00314.83
7.2.160.0000.02114.59
7.2.150.0060.00616.27
7.2.140.0080.01216.58
7.2.130.0130.00916.81
7.2.120.0060.00616.71
7.2.110.0030.00916.87
7.2.100.0150.00616.60
7.2.90.0080.00416.83
7.2.80.0090.00616.73
7.2.70.0090.00616.72
7.2.60.0090.00316.66
7.2.50.0070.01616.71
7.2.40.0090.00316.63
7.2.30.0050.00516.34
7.2.20.0070.00416.89
7.2.10.0050.00616.75
7.2.00.0030.00816.52
7.1.280.0090.00315.41
7.1.270.0090.00915.62
7.1.260.0030.00715.39
7.1.250.0130.00615.31

preferences:
136.75 ms | 993 KiB | 7 Q