3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fibo[0] = 0; $fibo[1] = 1; for($i=2; $i<10; $i++){ $fibo[i] = $fibo[i-1] + $fibo[i-2]; echo "Fibonacci series"+$i-1+" : "; echo $fibo[i]; echo "\n"; } ?>
based on l81MU
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 26
Branch analysis from position: 26
Jump found. Position 1 = 28, Position 2 = 6
Branch analysis from position: 28
Jump found. Position 1 = -2
Branch analysis from position: 6
Jump found. Position 1 = 28, Position 2 = 6
Branch analysis from position: 28
Branch analysis from position: 6
filename:       /in/1lPWZ
function name:  (null)
number of ops:  29
compiled vars:  !0 = $fibo, !1 = $i
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN_DIM                                               !0, 0
         1        OP_DATA                                                  0
   3     2        ASSIGN_DIM                                               !0, 1
         3        OP_DATA                                                  1
   5     4        ASSIGN                                                   !1, 2
         5      > JMP                                                      ->26
   6     6    >   FETCH_CONSTANT                                   ~5      'i'
         7        FETCH_CONSTANT                                   ~7      'i'
         8        SUB                                              ~8      ~7, 1
         9        FETCH_DIM_R                                      $9      !0, ~8
        10        FETCH_CONSTANT                                   ~10     'i'
        11        SUB                                              ~11     ~10, 2
        12        FETCH_DIM_R                                      $12     !0, ~11
        13        ADD                                              ~13     $9, $12
        14        ASSIGN_DIM                                               !0, ~5
        15        OP_DATA                                                  ~13
   8    16        ADD                                              ~14     'Fibonacci+series', !1
        17        SUB                                              ~15     ~14, 1
        18        ADD                                              ~16     ~15, '+%3A+'
        19        ECHO                                                     ~16
   9    20        FETCH_CONSTANT                                   ~17     'i'
        21        FETCH_DIM_R                                      $18     !0, ~17
        22        ECHO                                                     $18
  10    23        ECHO                                                     '%0A'
   5    24        POST_INC                                         ~19     !1
        25        FREE                                                     ~19
        26    >   IS_SMALLER                                       ~20     !1, 10
        27      > JMPNZ                                                    ~20, ->6
        28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0