3v4l.org

run code in 300+ PHP versions simultaneously
<?php function abc() { return __FUNCTION__; } function xyz() { return abc(); } echo xyz(); class Insurance { function clsName() { echo get_class($this); } } $cl = new Insurance(); $cl->clsName(); Insurance::clsName();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6WH7Z
function name:  (null)
number of ops:  11
compiled vars:  !0 = $cl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'xyz'
          1        DO_FCALL                                      0  $1      
          2        ECHO                                                     $1
   22     3        NEW                                              $2      'Insurance'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
   23     6        INIT_METHOD_CALL                                         !0, 'clsName'
          7        DO_FCALL                                      0          
   24     8        INIT_STATIC_METHOD_CALL                                  'Insurance', 'clsName'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

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

End of function abc

Function xyz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6WH7Z
function name:  xyz
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'abc'
          1        DO_FCALL                                      0  $0      
          2      > RETURN                                                   $0
   10     3*     > RETURN                                                   null

End of function xyz

Class Insurance:
Function clsname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6WH7Z
function name:  clsName
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   FETCH_THIS                                       ~0      
          1        GET_CLASS                                        ~1      ~0
          2        ECHO                                                     ~1
   19     3      > RETURN                                                   null

End of function clsname

End of class Insurance.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.11 ms | 1403 KiB | 15 Q