3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $tab = 'tabValue'; } echo serialize(new Foo()); var_dump(get_object_vars(new Foo()));
based on 7nkmo
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
O:3:"Foo":3:{s:3:"bar";s:8:"barValue";s:6:"*baz";s:8:"bazValue";s:8:"Footab";s:8:"tabValue";}array(1) { ["bar"]=> string(8) "barValue" }