3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { protected $headerList = array(); public function addFilterSetting($filter_name, $parameter_name, $parameter_value) { // $b = $this->headerList['filters'][$filter_name]['settings'][$parameter_name]; $this->headerList['filters'][$filter_name]['settings'][$parameter_name] = $parameter_value; } public function display() { var_dump($this->headerList); } } // Test service show notices $noticeTest = FILTER; // Test service show warnings $file=fopen("welcome.txt","r"); $a = new Test(); $a->addFilterSetting('twitter', 'enable', true); $a->display();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W1UV0
function name:  (null)
number of ops:  18
compiled vars:  !0 = $noticeTest, !1 = $file, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   FETCH_CONSTANT                                   ~3      'FILTER'
          1        ASSIGN                                                   !0, ~3
   23     2        INIT_FCALL                                               'fopen'
          3        SEND_VAL                                                 'welcome.txt'
          4        SEND_VAL                                                 'r'
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
   25     7        NEW                                              $7      'Test'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !2, $7
   26    10        INIT_METHOD_CALL                                         !2, 'addFilterSetting'
         11        SEND_VAL_EX                                              'twitter'
         12        SEND_VAL_EX                                              'enable'
         13        SEND_VAL_EX                                              <true>
         14        DO_FCALL                                      0          
   27    15        INIT_METHOD_CALL                                         !2, 'display'
         16        DO_FCALL                                      0          
         17      > RETURN                                                   1

Class Test:
Function addfiltersetting:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W1UV0
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      
   10     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
   11     9      > RETURN                                                   null

End of function addfiltersetting

Function display:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W1UV0
function name:  display
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_OBJ_R                                      ~0      'headerList'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   16     4      > RETURN                                                   null

End of function display

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.95 ms | 1388 KiB | 17 Q