3v4l.org

run code in 300+ PHP versions simultaneously
<?php function counter($start, &$stop){ counter($start--, ++$stop); if ($stop > $start){ return; } $start=$start - 1; } $start = 5; $stop = 2; counter($start, $stop);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TNBc9
function name:  (null)
number of ops:  7
compiled vars:  !0 = $start, !1 = $stop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, 5
   12     1        ASSIGN                                                   !1, 2
   13     2        INIT_FCALL                                               'counter'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function counter

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
199.01 ms | 1402 KiB | 14 Q