3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function a() { $this->b = 'c'; echo $this->b; } static function r() { self::a(); } } Test::r();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/63cuD
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_STATIC_METHOD_CALL                                  'Test', 'r'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class Test:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/63cuD
function name:  a
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN_OBJ                                               'b'
          1        OP_DATA                                                  'c'
    5     2        FETCH_OBJ_R                                      ~1      'b'
          3        ECHO                                                     ~1
    6     4      > RETURN                                                   null

End of function a

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

End of function r

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.61 ms | 1393 KiB | 13 Q