3v4l.org

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

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

End of function mytest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.45 ms | 1397 KiB | 16 Q