3v4l.org

run code in 300+ PHP versions simultaneously
<?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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E9Rtv
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $league
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $3      
          5        ECHO                                                     $3
   11     6        ASSIGN                                                   !1, <array>
   19     7        INIT_FCALL                                               'json_encode'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $5      
         11        ECHO                                                     $5
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.65 ms | 1394 KiB | 15 Q