3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr['color_list'] = []; $var[0][0] = 1; $var[0][1] = 2; $var[1][0] = 2; $var[1][1] = 2; $arr['color_list'] = $var; echo json_encode($arr,JSON_PRETTY);
based on XHMP8