3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myTest() { static $x=0; echo $x; $x++; } myTest(); echo "<br>"; myTest(); echo "<br>"; myTest(); echo "<br>"; myTest(); echo "<br>"; myTest(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3uHWU
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'mytest'
          1        DO_FCALL                                      0          
    9     2        ECHO                                                     '%3Cbr%3E'
   10     3        INIT_FCALL                                               'mytest'
          4        DO_FCALL                                      0          
   11     5        ECHO                                                     '%3Cbr%3E'
   12     6        INIT_FCALL                                               'mytest'
          7        DO_FCALL                                      0          
   13     8        ECHO                                                     '%3Cbr%3E'
   14     9        INIT_FCALL                                               'mytest'
         10        DO_FCALL                                      0          
   15    11        ECHO                                                     '%3Cbr%3E'
   16    12        INIT_FCALL                                               'mytest'
         13        DO_FCALL                                      0          
   17    14      > RETURN                                                   1

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

End of function mytest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.77 ms | 1397 KiB | 18 Q