3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function doIt() { echo __CLASS__; print_r($this); } } class b { function live() { a::doIt(); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IX4rC
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E > > RETURN                                                   1

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

End of function doit

End of class a.

Class b:
Function live:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IX4rC
function name:  live
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_STATIC_METHOD_CALL                                  'a', 'doIt'
          1        DO_FCALL                                      0          
   16     2      > RETURN                                                   null

End of function live

End of class b.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.63 ms | 1386 KiB | 15 Q