3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $node = array( 'a' => 1, 'b' => 2, ); $node = (object) $node; var_dump($node); print_r($node->a == 1);
based on 6roYj
Output for 5.0.0 - 7.2.0
object(stdClass)#1 (2) { ["a"]=> int(1) ["b"]=> int(2) } 1
Output for 4.3.0 - 4.4.9
object(stdClass)(2) { ["a"]=> int(1) ["b"]=> int(2) } 1