3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Manager { #[\NoDiscard] public function save(): int { return random_int(1, 8); } } $manager = new Manager(); // This should not be reported, see: // // https://www.php.net/manual/en/class.nodiscard.php (void) $manager->save(); // This is correctly reported if uncommented $manager->save(); echo $manager->save();

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

preferences:
40.99 ms | 480 KiB | 5 Q