3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 0; $y = 1; echo 1 . PHP_EOL; foreach ( range( 1, 14 ) as $i ) { $z = $x + $y; $x = $y; $y = $z; echo $z . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/hUCOr
function name:  (null)
number of ops:  18
compiled vars:  !0 = $x, !1 = $y, !2 = $i, !3 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    4     1        ASSIGN                                                   !1, 1
    6     2        ECHO                                                     '1%0A'
    8     3        INIT_FCALL                                               'range'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 14
          6        DO_ICALL                                         $6      
          7      > FE_RESET_R                                       $7      $6, ->16
          8    > > FE_FETCH_R                                               $7, !2, ->16
   10     9    >   ADD                                              ~8      !0, !1
         10        ASSIGN                                                   !3, ~8
   12    11        ASSIGN                                                   !0, !1
   13    12        ASSIGN                                                   !1, !3
   15    13        CONCAT                                           ~12     !3, '%0A'
         14        ECHO                                                     ~12
    8    15      > JMP                                                      ->8
         16    >   FE_FREE                                                  $7
   16    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.73 ms | 1395 KiB | 15 Q