3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = [ ['A', 1], 'B', ['C', 2], 'D', 'E', ['F', 3], ]; print json_encode(array_column($arr, null, 1), JSON_PRETTY_PRINT);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H1Yee
function name:  (null)
number of ops:  12
compiled vars:  !0 = $arr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   12     1        INIT_FCALL                                                   'json_encode'
          2        INIT_FCALL                                                   'array_column'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     null
          5        SEND_VAL                                                     1
          6        DO_ICALL                                             $2      
          7        SEND_VAR                                                     $2
          8        SEND_VAL                                                     128
          9        DO_ICALL                                             $3      
         10        ECHO                                                         $3
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.01 ms | 2044 KiB | 15 Q