<?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();
You have javascript disabled. You will not be able to edit any code.
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).