3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { private $variable = "value"; protected $prot = "protected value"; } $object = new test(); var_export(array(new test()));

preferences:
37.86 ms | 402 KiB | 5 Q