3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x=array(1=>'t'); print_r($x); print_r((object)$x); print_r((array)(object)$x);
Output for 4.3.0 - 7.1.0
Array ( [1] => t ) stdClass Object ( [1] => t ) Array ( [1] => t )