3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Xyz { function doStuff() { var_dump($this); } } class Mno { function doOriginalStuff() { Xyz::doStuff(); } } $mno = new Mno(); $mno->doOriginalStuff();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YkbMS
function name:  (null)
number of ops:  6
compiled vars:  !0 = $mno
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Mno'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   16     3        INIT_METHOD_CALL                                         !0, 'doOriginalStuff'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

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

End of function dostuff

End of class Xyz.

Class Mno:
Function dooriginalstuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YkbMS
function name:  doOriginalStuff
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_STATIC_METHOD_CALL                                  'Xyz', 'doStuff'
          1        DO_FCALL                                      0          
   12     2      > RETURN                                                   null

End of function dooriginalstuff

End of class Mno.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.26 ms | 997 KiB | 14 Q