3v4l.org

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

preferences:
25.59 ms | 475 KiB | 4 Q