3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public $callable = static function (): void { echo "DEFAULT!\n"; }; } $foo = new Foo(); ($foo->callable)(); $foo->callable = static function (): void { echo "CUSTOM!\n"; }; ($foo->callable)();

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.3.50.0100.00916.73

preferences:
40.69 ms | 489 KiB | 4 Q