3v4l.org

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

Function staticcount:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0audf
function name:  staticCount
number of ops:  6
compiled vars:  !0 = $counter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   BIND_STATIC                                              !0
    6     1        ECHO                                                     !0
    7     2        ADD                                              ~1      !0, 1
          3        ASSIGN                                                   !0, ~1
    8     4        ECHO                                                     '+'
    9     5      > RETURN                                                   null

End of function staticcount

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.17 ms | 1397 KiB | 16 Q