3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fibonacci = array(); for($i = 1; $i <= 4000000; $i++) { $i = $i + $previous; $fibonacci[] = $i; $previous = $i; } echo array_sum($fibonacci);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
Branch analysis from position: 3
filename:       /in/mgABI
function name:  (null)
number of ops:  16
compiled vars:  !0 = $fibonacci, !1 = $i, !2 = $previous
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->9
    4     3    >   ADD                                              ~5      !1, !2
          4        ASSIGN                                                   !1, ~5
    5     5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  !1
    6     7        ASSIGN                                                   !2, !1
    3     8        PRE_INC                                                  !1
          9    >   IS_SMALLER_OR_EQUAL                                      !1, 4000000
         10      > JMPNZ                                                    ~10, ->3
    8    11    >   INIT_FCALL                                               'array_sum'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $11     
         14        ECHO                                                     $11
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.91 ms | 1395 KiB | 15 Q