3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hoge = 1; $rate = 0.4; $logs = []; foreach (range(1, 30) as $count) { $hoge *= $rate; $logs[$count] = $hoge; } var_dump($logs);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/9vR4K
function name:  (null)
number of ops:  18
compiled vars:  !0 = $hoge, !1 = $rate, !2 = $logs, !3 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        ASSIGN                                                   !1, 0.4
    5     2        ASSIGN                                                   !2, <array>
    7     3        INIT_FCALL                                               'range'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 30
          6        DO_ICALL                                         $7      
          7      > FE_RESET_R                                       $8      $7, ->13
          8    > > FE_FETCH_R                                               $8, !3, ->13
    8     9    >   ASSIGN_OP                                     3          !0, !1
    9    10        ASSIGN_DIM                                               !2, !3
         11        OP_DATA                                                  !0
    7    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $8
   12    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.52 ms | 1395 KiB | 17 Q