3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = new StdClass(); var_dump(array($x => 1));
Output for 4.3.9 - 5.6.28, 7.0.0 - 7.1.0
Warning: Illegal offset type in /in/9GfSb on line 3 array(0) { }
Output for hhvm-3.10.0 - 3.13.2
Warning: Invalid operand type was used: Invalid type used as key in /in/9GfSb on line 3 array(0) { }
Output for 4.3.0 - 4.3.8
array(0) { }