3v4l.org

run code in 500+ PHP versions simultaneously
<?php function test1(): X|Y|int|float|false|null { } var_dump((new ReflectionFunction('test1'))->getReturnType()->allowsNull());

preferences:
22.45 ms | 475 KiB | 4 Q