3v4l.org

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

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.67 ms | 1397 KiB | 16 Q