3v4l.org

run code in 500+ PHP versions simultaneously
<?php class SomeClass { public function run() { $this->some_call(); } #[\NoDiscard] private function some_call() { } } (new SomeClass())->run();
Output for 8.2.31 - 8.2.34, 8.3.0 - 8.3.35, 8.4.1 - 8.4.26
Output for 8.5.3 - 8.5.11
Warning: The return value of method SomeClass::some_call() should either be used or intentionally ignored by casting it as (void) in /in/YXB9c on line 7

preferences:
35.23 ms | 1499 KiB | 9 Q