3v4l.org

run code in 300+ PHP versions simultaneously
<?php function counter($start, &$stop){ if ($stop > $start){ return; } counter($start, $stop); } $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/rMapZ
function name:  (null)
number of ops:  7
compiled vars:  !0 = $start, !1 = $stop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, 5
   11     1        ASSIGN                                                   !1, 2
   12     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 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rMapZ
function name:  counter
number of ops:  10
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        IS_SMALLER                                               !0, !1
          3      > JMPZ                                                     ~2, ->5
    5     4    > > RETURN                                                   null
    7     5    >   INIT_FCALL_BY_NAME                                       'counter'
          6        SEND_VAR_EX                                              !0
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
    8     9      > RETURN                                                   null

End of function counter

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.69 ms | 1397 KiB | 14 Q