3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Example; class A { public function test(string $a) { return $a; } } class B extends A { public function test(mixed $a) { return parent::test($a); } } $b = new B(); var_dump(get_debug_type($b));

preferences:
23.19 ms | 405 KiB | 5 Q