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 7.2.0 - 7.2.33, 7.3.0 - 7.3.22, 7.4.0 - 7.4.10
Fatal error: Method Foo::__call() must take exactly 2 arguments in /in/9WApp on line 7
Process exited with code 255.