3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = []; $a[10][new stdclass][30] = 5; var_dump($a);
based on ic6I1
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Warning: Illegal offset type in /in/BWAld on line 4 array(1) { [10]=> array(0) { } }
Output for hhvm-3.15.4
Warning: Invalid operand type was used: Invalid type used as key in /in/BWAld on line 4 array(1) { [10]=> array(0) { } }