3v4l.org

run code in 300+ PHP versions simultaneously
<?php $workers = array(); $workers[0] = array('a' =>1, 'b'=> 34, 'unitId'=>4); $workers[1] = array('a' =>1, 'b'=> 34, 'unitId'=>5); $workers[2] = array('a' =>1, 'b'=> 34, 'unitId'=>6); $workers[3] = array('a' =>1, 'b'=> 34, 'unitId'=>7); $workers[4] = array('a' =>1, 'b'=> 34, 'unitId'=>8); $workers[5] = array('a' =>1, 'b'=> 34, 'unitId'=>9); $units = array(); foreach($workers as $worker){ $units[] = $worker['unitId']; } var_dump($units);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 20
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/HbVZP
function name:  (null)
number of ops:  25
compiled vars:  !0 = $workers, !1 = $units, !2 = $worker
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN_DIM                                               !0, 0
          2        OP_DATA                                                  <array>
    6     3        ASSIGN_DIM                                               !0, 1
          4        OP_DATA                                                  <array>
    7     5        ASSIGN_DIM                                               !0, 2
          6        OP_DATA                                                  <array>
    8     7        ASSIGN_DIM                                               !0, 3
          8        OP_DATA                                                  <array>
    9     9        ASSIGN_DIM                                               !0, 4
         10        OP_DATA                                                  <array>
   10    11        ASSIGN_DIM                                               !0, 5
         12        OP_DATA                                                  <array>
   12    13        ASSIGN                                                   !1, <array>
   14    14      > FE_RESET_R                                       $11     !0, ->20
         15    > > FE_FETCH_R                                               $11, !2, ->20
   15    16    >   FETCH_DIM_R                                      ~13     !2, 'unitId'
         17        ASSIGN_DIM                                               !1
         18        OP_DATA                                                  ~13
   14    19      > JMP                                                      ->15
         20    >   FE_FREE                                                  $11
   18    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.78 ms | 1395 KiB | 15 Q