3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new stdClass(); $a->a = 'a'; $a->b = 'b'; var_export($a);
Output for 5.1.0 - 7.1.10
stdClass::__set_state(array( 'a' => 'a', 'b' => 'b', ))
Output for 5.0.0 - 5.0.5
class stdClass { public $a = 'a'; public $b = 'b'; }
Output for 4.3.0 - 4.4.9
class stdClass { var $a = 'a'; var $b = 'b'; }