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 = 20
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 20
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/YEejB
function name:  (null)
number of ops:  29
compiled vars:  !0 = $BrickTerritorys, !1 = $BrickTerritory, !2 = $index, !3 = $T, !4 = $T1, !5 = $T2, !6 = $Weightage1, !7 = $Weightage2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   CAST                                              8  ~8      <array>
          1        INIT_ARRAY                                           ~9      ~8, 1
          2        CAST                                              8  ~10     <array>
          3        ADD_ARRAY_ELEMENT                                    ~9      ~10, 2
    2     4        ASSIGN                                                       !0, ~9
   23     5      > FE_RESET_R                                           $12     !0, ->20
          6    > > FE_FETCH_R                                           ~13     $12, !1, ->20
          7    >   ASSIGN                                                       !2, ~13
   25     8        ROPE_INIT                                         3  ~16     !3
          9        ROPE_ADD                                          1  ~16     ~16, '.'
         10        ROPE_END                                          2  ~15     ~16, !2
         11        FETCH_OBJ_R                                          ~19     !1, 'TerritoryID'
         12        FETCH_W                          local               $18     ~15
         13        ASSIGN                                                       $18, ~19
   26    14        NOP                                                          
         15        FAST_CONCAT                                          ~21     '%27Weightage%27.', !2
         16        FETCH_OBJ_R                                          ~23     !1, 'Weightage'
         17        FETCH_W                          local               $22     ~21
         18        ASSIGN                                                       $22, ~23
   23    19      > JMP                                                          ->6
         20    >   FE_FREE                                                      $12
   28    21        CONCAT                                               ~25     !4, '-'
         22        CONCAT                                               ~26     ~25, !5
         23        CONCAT                                               ~27     ~26, '--'
         24        CONCAT                                               ~28     ~27, !6
         25        CONCAT                                               ~29     ~28, '---'
         26        CONCAT                                               ~30     ~29, !7
         27        ECHO                                                         ~30
   29    28      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.81 ms | 2153 KiB | 13 Q