3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { static $count = 0; echo $count; $count++; echo $count; if ($count < 10) { test(); } $count--; } test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8gjJv
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'test'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/8gjJv
function name:  test
number of ops:  10
compiled vars:  !0 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   BIND_STATIC                                              !0
    7     1        ECHO                                                     !0
    9     2        PRE_INC                                                  !0
   10     3        ECHO                                                     !0
   11     4        IS_SMALLER                                               !0, 10
          5      > JMPZ                                                     ~2, ->8
   12     6    >   INIT_FCALL_BY_NAME                                       'test'
          7        DO_FCALL                                      0          
   14     8    >   PRE_DEC                                                  !0
   15     9      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.16 ms | 1401 KiB | 14 Q