3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( 1=>array(1,0), 4=>1 ); echo json_encode($a, true); $league = array( 3 => array(1, 0), // 거래 4 => array(1, 0), // 창고 5 => array(1, 0), // 생산 6 => array(0, 0), // 수익 7 => array(0, 0), // 시간 8 => array(0, 0) // 건설 ); echo json_encode($league, true);
based on WlpVm
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.8
{"1":[1,0],"4":1}{"3":[1,0],"4":[1,0],"5":[1,0],"6":[0,0],"7":[0,0],"8":[0,0]}