3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 0; $y = 1; for ($i = 1; $i < 100; $i++) { $x = $x + $y; $y = $x - $y; echo $x . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 4
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 4
Branch analysis from position: 13
Branch analysis from position: 4
filename:       /in/ISG7o
function name:  (null)
number of ops:  14
compiled vars:  !0 = $x, !1 = $y, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    4     1        ASSIGN                                                   !1, 1
    6     2        ASSIGN                                                   !2, 1
          3      > JMP                                                      ->11
    7     4    >   ADD                                              ~6      !0, !1
          5        ASSIGN                                                   !0, ~6
    8     6        SUB                                              ~8      !0, !1
          7        ASSIGN                                                   !1, ~8
    9     8        CONCAT                                           ~10     !0, '%0A'
          9        ECHO                                                     ~10
    6    10        PRE_INC                                                  !2
         11    >   IS_SMALLER                                               !2, 100
         12      > JMPNZ                                                    ~12, ->4
   10    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.79 ms | 1393 KiB | 13 Q