3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $obj = new stdClass(); $obj->error = 'test'; echo var_export($obj);
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.1.0
stdClass::__set_state(array( 'error' => 'test', ))
Output for hhvm-3.10.0 - 3.12.0
stdClass::__set_state(array( 'error' => 'test', ))1
Output for 5.0.0 - 5.0.5
class stdClass { public $error = 'test'; }
Output for 4.3.0 - 4.4.9
class stdClass { var $error = 'test'; }