3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doFooParams( string $file = __FILE__, int $line = __LINE__, string $class = __CLASS__, string $dir = __DIR__, string $namespace = __NAMESPACE__, string $method = __METHOD__, string $function = __FUNCTION__, string $trait = __TRAIT__ ): void { var_dump($function); var_dump($method); } doFooParams();
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
string(11) "doFooParams" string(11) "doFooParams"

preferences:
74.95 ms | 406 KiB | 5 Q