3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result[] = $prior = 0; $result[] = $current = 1; for ($i=0;$i<1000;$i++){ $temp = $current; $result[] = $current = $current + $prior; $prior = $current; } print_r($result);

Abusive script

This script was stopped while abusing our resources

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 = 8
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
Branch analysis from position: 8
filename:       /in/4J29K
function name:  (null)
number of ops:  21
compiled vars:  !0 = $result, !1 = $prior, !2 = $current, !3 = $i, !4 = $temp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                           ~6      !1, 0
          1        ASSIGN_DIM                                               !0
          2        OP_DATA                                                  ~6
    4     3        ASSIGN                                           ~8      !2, 1
          4        ASSIGN_DIM                                               !0
          5        OP_DATA                                                  ~8
    6     6        ASSIGN                                                   !3, 0
          7      > JMP                                                      ->15
    7     8    >   ASSIGN                                                   !4, !2
    8     9        ADD                                              ~12     !2, !1
         10        ASSIGN                                           ~13     !2, ~12
         11        ASSIGN_DIM                                               !0
         12        OP_DATA                                                  ~13
    9    13        ASSIGN                                                   !1, !2
    6    14        PRE_INC                                                  !3
         15    >   IS_SMALLER                                               !3, 1000
         16      > JMPNZ                                                    ~16, ->8
   12    17    >   INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
130.95 ms | 1010 KiB | 14 Q