3v4l.org

run code in 300+ PHP versions simultaneously
<?php function miauw() { static $count = 1; static $count = 2; return $count++; } for ($i = 0; $i < 42; ++$i) { echo miauw(), PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
Branch analysis from position: 2
filename:       /in/NDcTP
function name:  (null)
number of ops:  10
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->7
   10     2    >   INIT_FCALL                                               'miauw'
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5        ECHO                                                     '%0A'
    9     6        PRE_INC                                                  !0
          7    >   IS_SMALLER                                               !0, 42
          8      > JMPNZ                                                    ~4, ->2
   11     9    > > RETURN                                                   1

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

End of function miauw

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.91 ms | 1389 KiB | 14 Q