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());
based on 13boZ
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
O:3:"Foo":3:{s:3:"bar";s:8:"barValue";s:6:"*baz";s:8:"bazValue";s:8:"Footab";s:8:"tabValue";}