3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 );
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.0 - 7.3.0beta1
Notice: Undefined variable: Obj in /in/XamoS on line 17 Warning: get_object_vars() expects parameter 1 to be object, null given in /in/XamoS on line 17
Output for hhvm-3.22.0
Notice: Undefined variable: Obj in /in/XamoS on line -1 Warning: get_object_vars() expects parameter 1 to be object, null given in /in/XamoS on line -1