3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(): iterable { return []; } function bar(): iterable|bool { return []; } echo (new ReflectionFunction('foo'))->getReturnType()->__toString(); echo ", "; echo (new ReflectionFunction('bar'))->getReturnType()->__toString();

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
81.29 ms | 2709 KiB | 4 Q