3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "result":0, "status":[ { "id":"00001" }, { "id":"00002" }, { "id":"00003" } ] }'; print_r(array_column(json_decode($json, true)['status'], 'id'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TktI7
function name:  (null)
number of ops:  14
compiled vars:  !0 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%0A+++%22result%22%3A0%2C%0A+++%22status%22%3A%5B%0A++++++%7B%0A+++++++++%22id%22%3A%2200001%22%0A++++++%7D%2C%0A++++++%7B%0A+++++++++%22id%22%3A%2200002%22%0A++++++%7D%2C%0A++++++%7B%0A+++++++++%22id%22%3A%2200003%22%0A++++++%7D%0A+++%5D%0A%7D'
   16     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'array_column'
          3        INIT_FCALL                                               'json_decode'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $2      
          7        FETCH_DIM_R                                      ~3      $2, 'status'
          8        SEND_VAL                                                 ~3
          9        SEND_VAL                                                 'id'
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.03 ms | 1011 KiB | 16 Q