3v4l.org

run code in 300+ PHP versions simultaneously
<?php operation(5, 2); function operation($a, $b){ if ($a < $b) return 0; else return (operation($a-1, $b) + 1); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rvSQM
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'operation'
          1        SEND_VAL_EX                                              5
          2        SEND_VAL_EX                                              2
          3        DO_FCALL                                      0          
    9     4      > RETURN                                                   1

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

End of function operation

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.17 ms | 1394 KiB | 13 Q