3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Test { private $func = "strtolower"; public function testFunc() { return ($this->func)("ALPHABET"); } } $t = new Test(); echo $t->testFunc();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JiuIF
function name:  (null)
number of ops:  7
compiled vars:  !0 = $t
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   NEW                                                  $1      'Test'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   14     3        INIT_METHOD_CALL                                             !0, 'testFunc'
          4        DO_FCALL                                          0  $4      
          5        ECHO                                                         $4
          6      > RETURN                                                       1

Class Test:
Function testfunc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JiuIF
function name:  testFunc
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   FETCH_OBJ_R                                          ~0      'func'
          1        INIT_DYNAMIC_CALL                                            ~0
          2        SEND_VAL_EX                                                  'ALPHABET'
          3        DO_FCALL                                          0  $1      
          4      > RETURN                                                       $1
    9     5*     > RETURN                                                       null

End of function testfunc

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.04 ms | 3188 KiB | 13 Q