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; } public function display() { var_dump($this->headerList); if (empty($this->getHeaders())) { return '{}'; } } public function getHeaders() { return $this->headerList; } } $a = new Test; $a->display();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iN4YW
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   28     3        INIT_METHOD_CALL                                         !0, 'display'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

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

Function display:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iN4YW
function name:  display
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_OBJ_R                                      ~0      'headerList'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   16     4        INIT_METHOD_CALL                                         'getHeaders'
          5        DO_FCALL                                      0  $2      
          6        BOOL_NOT                                         ~3      $2
          7      > JMPZ                                                     ~3, ->9
   17     8    > > RETURN                                                   '%7B%7D'
   19     9    > > RETURN                                                   null

End of function display

Function getheaders:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iN4YW
function name:  getHeaders
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   FETCH_OBJ_R                                      ~0      'headerList'
          1      > RETURN                                                   ~0
   24     2*     > RETURN                                                   null

End of function getheaders

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.46 ms | 1400 KiB | 15 Q