3v4l.org

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

Function fibo:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/ZrULB
function name:  fibo
number of ops:  19
compiled vars:  !0 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        IS_EQUAL                                         ~1      !0, 0
          2      > JMPNZ_EX                                         ~1      ~1, ->5
          3    >   IS_EQUAL                                         ~2      !0, 1
          4        BOOL                                             ~1      ~2
          5    > > JMPZ                                                     ~1, ->8
    5     6    > > RETURN                                                   1
          7*       JMP                                                      ->18
    7     8    >   INIT_FCALL_BY_NAME                                       'fibo'
          9        SUB                                              ~3      !0, 1
         10        SEND_VAL_EX                                              ~3
         11        DO_FCALL                                      0  $4      
         12        INIT_FCALL_BY_NAME                                       'fibo'
         13        SUB                                              ~5      !0, 2
         14        SEND_VAL_EX                                              ~5
         15        DO_FCALL                                      0  $6      
         16        ADD                                              ~7      $4, $6
         17      > RETURN                                                   ~7
    9    18*     > RETURN                                                   null

End of function fibo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.07 ms | 1389 KiB | 14 Q