3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CString { public static function fun3(){ echo __FUNCTION__; } public function fun4(){ echo __FUNCTION__; } } class Test { public function fun1(){ echo __FUNCTION__; } public function fun2(){ echo __FUNCTION__; } } $cs = new CString; $t = new Test; var_dump($cs, $t); $cs->fun4(); CString::fun3(); $t->fun1();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YB4Yc
function name:  (null)
number of ops:  17
compiled vars:  !0 = $cs, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   NEW                                              $2      'CString'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   25     3        NEW                                              $5      'Test'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   27     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
   29    10        INIT_METHOD_CALL                                         !0, 'fun4'
         11        DO_FCALL                                      0          
   30    12        INIT_STATIC_METHOD_CALL                                  'CString', 'fun3'
         13        DO_FCALL                                      0          
   31    14        INIT_METHOD_CALL                                         !1, 'fun1'
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

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

End of function fun3

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

End of function fun4

End of class CString.

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

End of function fun1

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

End of function fun2

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.1 ms | 1396 KiB | 15 Q