3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { static $t = 2; function t1(){ echo $this->t; echo '222'; } } Test::t1();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NrkLg
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', 't1'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class Test:
Function t1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NrkLg
function name:  t1
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   FETCH_OBJ_R                                      ~0      't'
          1        ECHO                                                     ~0
    9     2        ECHO                                                     '222'
   10     3      > RETURN                                                   null

End of function t1

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.9 ms | 1392 KiB | 13 Q