3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($bar = new DateTimeImmutabe('now')) { } $rf = new \ReflectionFunction('foo'); $rp = $rf->getParameters()[0]; var_dump((string) $rp);

preferences:
24.56 ms | 404 KiB | 5 Q