3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $optionsbyuser = []; $optionsbyuser[1][] = 2; print_r($optionsbyuser);
based on 0hJ32
Output for 5.6.0 - 7.2.8
Array ( [1] => Array ( [0] => 2 ) )