3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new stdClass; $foo->bar = 1; var_dump((new ReflectionObject($foo))->getProperties()[0]->getType()->__toString());

preferences:
30.14 ms | 402 KiB | 5 Q