3v4l.org

run code in 500+ PHP versions simultaneously
<?php $BrickTerritorys = [ 1 => (object)[ 'id' => 119, 'TerritoryID' => 'HYD-2-CMD', 'BrickCode' => 16, 'BrickName' => 'BUHURO', 'Weightage' => '40.00', 'BPCode' => 'bp00066', 'GroupCode' => 'CMD' ], 2 => (object)[ 'id' => 36330, 'TerritoryID' => 'HYD-1-CMD', 'BrickCode' => 16, 'BrickName' => 'BUHURO', 'Weightage' => '60.00', 'BPCode' => 'bp00066', 'GroupCode' => 'CMD' ] ]; foreach($BrickTerritorys as $index=>$BrickTerritory) { ${"T$index"}= $BrickTerritory->TerritoryID; ${"Weightage$index"} = $BrickTerritory->Weightage; } echo $T1."-".$T2."--".$Weightage1."---".$Weightage2;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 19
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 19
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/i0rVo
function name:  (null)
number of ops:  28
compiled vars:  !0 = $BrickTerritorys, !1 = $BrickTerritory, !2 = $index, !3 = $T1, !4 = $T2, !5 = $Weightage1, !6 = $Weightage2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   CAST                                              8  ~7      <array>
          1        INIT_ARRAY                                           ~8      ~7, 1
          2        CAST                                              8  ~9      <array>
          3        ADD_ARRAY_ELEMENT                                    ~8      ~9, 2
    2     4        ASSIGN                                                       !0, ~8
   23     5      > FE_RESET_R                                           $11     !0, ->19
          6    > > FE_FETCH_R                                           ~12     $11, !1, ->19
          7    >   ASSIGN                                                       !2, ~12
   25     8        NOP                                                          
          9        FAST_CONCAT                                          ~14     'T', !2
         10        FETCH_OBJ_R                                          ~16     !1, 'TerritoryID'
         11        FETCH_W                          local               $15     ~14
         12        ASSIGN                                                       $15, ~16
   26    13        NOP                                                          
         14        FAST_CONCAT                                          ~18     'Weightage', !2
         15        FETCH_OBJ_R                                          ~20     !1, 'Weightage'
         16        FETCH_W                          local               $19     ~18
         17        ASSIGN                                                       $19, ~20
   23    18      > JMP                                                          ->6
         19    >   FE_FREE                                                      $11
   28    20        CONCAT                                               ~22     !3, '-'
         21        CONCAT                                               ~23     ~22, !4
         22        CONCAT                                               ~24     ~23, '--'
         23        CONCAT                                               ~25     ~24, !5
         24        CONCAT                                               ~26     ~25, '---'
         25        CONCAT                                               ~27     ~26, !6
         26        ECHO                                                         ~27
   29    27      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.35 ms | 2517 KiB | 13 Q