3v4l.org

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

Class Test:
Function count:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2mO3a
function name:  count
number of ops:  4
compiled vars:  !0 = $c
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   BIND_STATIC                                                  !0
    8     1        ECHO                                                         !0
    9     2        PRE_INC                                                      !0
   10     3      > RETURN                                                       null

End of function count

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.53 ms | 2157 KiB | 8 Q