3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $method; public function testA() { } public function callIt() { $this->method(); } } $t = new Test(); var_dump($t->callIt()); die;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/ZZ24L
function name:  (null)
number of ops:  10
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'callIt'
          5        DO_FCALL                                      0  $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
   18     8      > EXIT                                                     
          9*     > RETURN                                                   1

Class Test:
Function testa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZZ24L
function name:  testA
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   null

End of function testa

Function callit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZZ24L
function name:  callIt
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_METHOD_CALL                                         'method'
          1        DO_FCALL                                      0          
   11     2      > RETURN                                                   null

End of function callit

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.39 ms | 1395 KiB | 15 Q