3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $value = new StdClass; $value->x = 5; $value = (array)$value; var_dump($value);
Output for 4.3.0 - 7.2.0
array(1) { ["x"]=> int(5) }