3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $b = 1; for ($i = 0; $i <= 10; $i++) { list($a, $b) = array($b, $a + $b); echo $b . ', '; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 4
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 4
Branch analysis from position: 17
Branch analysis from position: 4
filename:       /in/QM6FZ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
          1        ASSIGN                                                   !1, 1
    3     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->15
    4     4    >   INIT_ARRAY                                       ~6      !1
          5        ADD                                              ~7      !0, !1
          6        ADD_ARRAY_ELEMENT                                ~6      ~7
          7        FETCH_LIST_R                                     $8      ~6, 0
          8        ASSIGN                                                   !0, $8
          9        FETCH_LIST_R                                     $10     ~6, 1
         10        ASSIGN                                                   !1, $10
         11        FREE                                                     ~6
    6    12        CONCAT                                           ~12     !1, '%2C+'
         13        ECHO                                                     ~12
    3    14        PRE_INC                                                  !2
         15    >   IS_SMALLER_OR_EQUAL                                      !2, 10
         16      > JMPNZ                                                    ~14, ->4
    7    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.22 ms | 1393 KiB | 13 Q