3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fibo_r($n){ return(($n < 2) ? 1 : fibo_r($n - 2) + fibo_r($n - 1)); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3pdua
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   1

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

End of function fibo_r

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.97 ms | 1398 KiB | 13 Q