3v4l.org

run code in 300+ PHP versions simultaneously
<?php function strict() { $backtrace = debug_backtrace(0, 2); if (false === $backtrace || count($backtrace) !== 1) { throw new \RuntimeException('strict() must be called from within a function'); } $expectedTypes = func_get_args(); print_r($backtrace); } function myargs($a, $b) { strict('string', 'int'); echo 'Hello'; } myargs('hello', 4);

preferences:
49.2 ms | 402 KiB | 5 Q