3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php function myTest() { static $x=0; echo $x; $x++; } myTest(); echo "<br>"; myTest(); echo "<br>"; 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/b4TC1
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A%3Cbody%3E%0A%0A'
   12     1        INIT_FCALL                                               'mytest'
          2        DO_FCALL                                      0          
   13     3        ECHO                                                     '%3Cbr%3E'
   14     4        INIT_FCALL                                               'mytest'
          5        DO_FCALL                                      0          
   15     6        ECHO                                                     '%3Cbr%3E'
   16     7        INIT_FCALL                                               'mytest'
          8        DO_FCALL                                      0          
   17     9        ECHO                                                     '%3Cbr%3E'
   18    10        INIT_FCALL                                               'mytest'
         11        DO_FCALL                                      0          
   19    12        ECHO                                                     '%3Cbr%3E'
   20    13        INIT_FCALL                                               'mytest'
         14        DO_FCALL                                      0          
   21    15        ECHO                                                     '++%0A%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   24    16      > RETURN                                                   1

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

End of function mytest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.67 ms | 1398 KiB | 18 Q