3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Magic { public function delete() { echo "OMG CALLED!!".PHP_EOL; } }; class EmptyClass extends Magic { }; class MethodTest extends Magic { public function omg() { EmptyClass::delete(); } }; $obj = new MethodTest; $obj->omg(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lsngY
function name:  (null)
number of ops:  6
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $1      'MethodTest'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   25     3        INIT_METHOD_CALL                                         !0, 'omg'
          4        DO_FCALL                                      0          
   26     5      > RETURN                                                   1

Class Magic:
Function delete:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lsngY
function name:  delete
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'OMG+CALLED%21%21%0A'
    6     1      > RETURN                                                   null

End of function delete

End of class Magic.

Class EmptyClass:
Function delete:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lsngY
function name:  delete
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'OMG+CALLED%21%21%0A'
    6     1      > RETURN                                                   null

End of function delete

End of class EmptyClass.

Class MethodTest:
Function omg:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lsngY
function name:  omg
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_STATIC_METHOD_CALL                                  'EmptyClass', 'delete'
          1        DO_FCALL                                      0          
   19     2      > RETURN                                                   null

End of function omg

Function delete:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lsngY
function name:  delete
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'OMG+CALLED%21%21%0A'
    6     1      > RETURN                                                   null

End of function delete

End of class MethodTest.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.2 ms | 996 KiB | 13 Q