3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $tab = 'tabValue'; } $foo = new Foo(); $arrayFoo = (array) $foo; var_dump($arrayFoo['*baz']); var_dump($arrayFoo['Footab']);

preferences:
25.59 ms | 404 KiB | 5 Q