3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr=Array ( "1" => Array ( "1" => "c1", "2" => "c1", "3" => "c1", "4" => "c1", "5" => "c1", "6" => "c1", "7" => "c1", "8" => "c1", "9" => "c1", "10" => "c1", "11" => "c1", "12" => "c1" ), "10" => Array ( "1" => "c2", "2" => "c2", "3" => "c2", "4" => "c2", "5" => "c2", "6" => "c2", "7" => "c2", "8" => "c2", "9" => "c2", "10" => "c2", "11" => "c2", "12" => "c2" ) ); echo json_encode( array_map( null, array_keys(current($arr)), ...$arr ), JSON_PRETTY_PRINT );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kdgBX
function name:  (null)
number of ops:  19
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   37     1        INIT_FCALL                                               'json_encode'
   38     2        INIT_FCALL                                               'array_map'
   39     3        SEND_VAL                                                 null
   40     4        INIT_FCALL                                               'array_keys'
          5        INIT_FCALL                                               'current'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
   41    11        SEND_UNPACK                                              !0
         12        CHECK_UNDEF_ARGS                                         
   38    13        DO_ICALL                                         $4      
   41    14        SEND_VAR                                                 $4
   43    15        SEND_VAL                                                 128
   37    16        DO_ICALL                                         $5      
   43    17        ECHO                                                     $5
   44    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.81 ms | 1004 KiB | 17 Q