<?phperror_reporting(-1); class Question{ public $a = array(); protected $b = array(); private $c = array(); } $q1 = new Question; var_dump($q1);
Standard input is empty
object(Question)#1 (3) { ["a"]=> array(0) { } ["b":protected]=> array(0) { } ["c":"Question":private]=> array(0) { } }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!