3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a['question'] = array(); $a['question'][1] = array('test'=>1, 'blah'=>'cool'); echo json_encode($a);

preferences:
77.16 ms | 402 KiB | 5 Q