3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fibonachi($n) { $array = array(0, 1, 1); if ($n === 0) { for ($i = 2; $i < $n; $i++) { $array[$i] = bcadd($array[$i-1], $array[$i-2]); } } for ($i = 0; $i < $n; $i++) { echo " ".$array[$i]; } } fibonachi(11);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0i06g
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'fibonachi'
          1        SEND_VAL                                                 11
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function fibonachi:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 21
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 6
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 23
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 23
Branch analysis from position: 29
Branch analysis from position: 23
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 6
Branch analysis from position: 21
Branch analysis from position: 6
Branch analysis from position: 21
filename:       /in/0i06g
function name:  fibonachi
number of ops:  30
compiled vars:  !0 = $n, !1 = $array, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, <array>
    6     2        IS_IDENTICAL                                             !0, 0
          3      > JMPZ                                                     ~4, ->21
    7     4    >   ASSIGN                                                   !2, 2
          5      > JMP                                                      ->19
    8     6    >   INIT_FCALL_BY_NAME                                       'bcadd'
          7        CHECK_FUNC_ARG                                           
          8        SUB                                              ~7      !2, 1
          9        FETCH_DIM_FUNC_ARG                               $8      !1, ~7
         10        SEND_FUNC_ARG                                            $8
         11        CHECK_FUNC_ARG                                           
         12        SUB                                              ~9      !2, 2
         13        FETCH_DIM_FUNC_ARG                               $10     !1, ~9
         14        SEND_FUNC_ARG                                            $10
         15        DO_FCALL                                      0  $11     
         16        ASSIGN_DIM                                               !1, !2
         17        OP_DATA                                                  $11
    7    18        PRE_INC                                                  !2
         19    >   IS_SMALLER                                               !2, !0
         20      > JMPNZ                                                    ~13, ->6
   12    21    >   ASSIGN                                                   !2, 0
         22      > JMP                                                      ->27
   13    23    >   FETCH_DIM_R                                      ~15     !1, !2
         24        CONCAT                                           ~16     '+', ~15
         25        ECHO                                                     ~16
   12    26        PRE_INC                                                  !2
         27    >   IS_SMALLER                                               !2, !0
         28      > JMPNZ                                                    ~18, ->23
   15    29    > > RETURN                                                   null

End of function fibonachi

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.38 ms | 1403 KiB | 14 Q