3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Foo { public function __call(): void { $args = func_get_args(); echo gettype($args[0]), ', ', gettype($args[1]); } } (new Foo)->bar('x');
Output for 8.0.0 - 8.0.29, 8.1.0 - 8.1.20, 8.2.0 - 8.2.7
Fatal error: Method Foo::__call() must take exactly 2 arguments in /in/9WApp on line 5
Process exited with code 255.
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Fatal error: Method Foo::__call() must take exactly 2 arguments in /in/9WApp on line 7
Process exited with code 255.

preferences:
242.72 ms | 1395 KiB | 166 Q