3v4l.org

run code in 300+ PHP versions simultaneously
<?php $services = [ 'branch_delivery' => [ 'name' => $this->getOptionText('branch_delivery'), 'url' => 'info/trade-services/delivery', 'image' => 'assets/img/branch/icon-truck-delivery.png' ], 'timber_cutting' => [ 'name' => $this->getOptionText('timber_cutting'), 'url' => 'info/trade-services/timber-cutting', 'image' => 'assets/img/branch/icon-timber-cutting.png' ] ]; $options = []; foreach ($services as $service => $data) { $options[$service] = $data['name']; } print_r($options);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 25
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 25
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/Uap8i
function name:  (null)
number of ops:  30
compiled vars:  !0 = $services, !1 = $options, !2 = $data, !3 = $service
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_THIS                                       $4      
          1        INIT_METHOD_CALL                                         $4, 'getOptionText'
          2        SEND_VAL_EX                                              'branch_delivery'
          3        DO_FCALL                                      0  $5      
          4        INIT_ARRAY                                       ~6      $5, 'name'
    6     5        ADD_ARRAY_ELEMENT                                ~6      'info%2Ftrade-services%2Fdelivery', 'url'
    7     6        ADD_ARRAY_ELEMENT                                ~6      'assets%2Fimg%2Fbranch%2Ficon-truck-delivery.png', 'image'
          7        INIT_ARRAY                                       ~7      ~6, 'branch_delivery'
   10     8        FETCH_THIS                                       $8      
          9        INIT_METHOD_CALL                                         $8, 'getOptionText'
         10        SEND_VAL_EX                                              'timber_cutting'
         11        DO_FCALL                                      0  $9      
         12        INIT_ARRAY                                       ~10     $9, 'name'
   11    13        ADD_ARRAY_ELEMENT                                ~10     'info%2Ftrade-services%2Ftimber-cutting', 'url'
   12    14        ADD_ARRAY_ELEMENT                                ~10     'assets%2Fimg%2Fbranch%2Ficon-timber-cutting.png', 'image'
         15        ADD_ARRAY_ELEMENT                                ~7      ~10, 'timber_cutting'
    3    16        ASSIGN                                                   !0, ~7
   16    17        ASSIGN                                                   !1, <array>
   18    18      > FE_RESET_R                                       $13     !0, ->25
         19    > > FE_FETCH_R                                       ~14     $13, !2, ->25
         20    >   ASSIGN                                                   !3, ~14
   19    21        FETCH_DIM_R                                      ~17     !2, 'name'
         22        ASSIGN_DIM                                               !1, !3
         23        OP_DATA                                                  ~17
   18    24      > JMP                                                      ->19
         25    >   FE_FREE                                                  $13
   22    26        INIT_FCALL                                               'print_r'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.6 ms | 1396 KiB | 15 Q