3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fib = [1,0]; for($i=0; $i<30; $i++) { $next = array_sum($fib); array_shift($fib); array_push($fib,$next); echo $next.", "; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
Branch analysis from position: 3
filename:       /in/RB6ml
function name:  (null)
number of ops:  20
compiled vars:  !0 = $fib, !1 = $i, !2 = $next
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->17
    6     3    >   INIT_FCALL                                               'array_sum'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    7     7        INIT_FCALL                                               'array_shift'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'array_push'
         11        SEND_REF                                                 !0
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
    9    14        CONCAT                                           ~9      !2, '%2C+'
         15        ECHO                                                     ~9
    5    16        PRE_INC                                                  !1
         17    >   IS_SMALLER                                               !1, 30
         18      > JMPNZ                                                    ~11, ->3
   10    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.93 ms | 1395 KiB | 19 Q