3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Potatoe { public $skin; protected $meat; private $roots; function __construct ( $s, $m, $r ) { $this->skin = $s; $this->meat = $m; $this->roots = $r; } } $a = new Potatoe(1,2,3); $vars = get_object_vars ( $Obj ); print_r ( $vars );

preferences:
56.81 ms | 402 KiB | 5 Q