3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = json_decode('{"id":[{"id":"217448625"},{"id":"177484962"},{"id":"575507011"},{"id":"162589600"},{"id":"339801850"},{"id":"806588415"},{"id":"442404184"},{"id":"107993689"}]}'); //print_r($array); $i=0; foreach ($array as $element) $newArray[0] = $element[0]['id']; var_export($newArray);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/cS5o6
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $i, !2 = $element, !3 = $newArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%22id%22%3A%5B%7B%22id%22%3A%22217448625%22%7D%2C%7B%22id%22%3A%22177484962%22%7D%2C%7B%22id%22%3A%22575507011%22%7D%2C%7B%22id%22%3A%22162589600%22%7D%2C%7B%22id%22%3A%22339801850%22%7D%2C%7B%22id%22%3A%22806588415%22%7D%2C%7B%22id%22%3A%22442404184%22%7D%2C%7B%22id%22%3A%22107993689%22%7D%5D%7D'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    6     4        ASSIGN                                                   !1, 0
    7     5      > FE_RESET_R                                       $7      !0, ->12
          6    > > FE_FETCH_R                                               $7, !2, ->12
    8     7    >   FETCH_DIM_R                                      ~9      !2, 0
          8        FETCH_DIM_R                                      ~10     ~9, 'id'
          9        ASSIGN_DIM                                               !3, 0
         10        OP_DATA                                                  ~10
    7    11      > JMP                                                      ->6
         12    >   FE_FREE                                                  $7
   10    13        INIT_FCALL                                               'var_export'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.99 ms | 1395 KiB | 17 Q