3v4l.org

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

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

End of function func

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.98 ms | 2220 KiB | 16 Q