3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { protected $headerList = array(); public function addFilterSetting($filter_name, $parameter_name, $parameter_value) { $this->headerList['filters'][$filter_name]['settings'][$parameter_name] = $parameter_value; } } $a = new Test(); $a->addFilterSetting('twitter', 'enable', true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rgOnd
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_METHOD_CALL                                         !0, 'addFilterSetting'
          4        SEND_VAL_EX                                              'twitter'
          5        SEND_VAL_EX                                              'enable'
          6        SEND_VAL_EX                                              <true>
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class Test:
Function addfiltersetting:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rgOnd
function name:  addFilterSetting
number of ops:  10
compiled vars:  !0 = $filter_name, !1 = $parameter_name, !2 = $parameter_value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    9     3        FETCH_OBJ_W                                      $3      'headerList'
          4        FETCH_DIM_W                                      $4      $3, 'filters'
          5        FETCH_DIM_W                                      $5      $4, !0
          6        FETCH_DIM_W                                      $6      $5, 'settings'
          7        ASSIGN_DIM                                               $6, !1
          8        OP_DATA                                                  !2
   10     9      > RETURN                                                   null

End of function addfiltersetting

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.19 ms | 1385 KiB | 13 Q