3v4l.org

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

Class mytest:
Function hw:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3jN3X
function name:  hw
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   BIND_STATIC                                              !0
    6     1        POST_INC                                         ~1      !0
          2        ECHO                                                     ~1
    7     3      > RETURN                                                   null

End of function hw

End of class mytest.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.01 ms | 1393 KiB | 13 Q