3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ""; foreach(range(0,10) as $k => $v){ echo ${arr.$k} = $v."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/QKXHu
function name:  (null)
number of ops:  17
compiled vars:  !0 = $arr, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, ''
    3     1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 10
          4        DO_ICALL                                         $4      
          5      > FE_RESET_R                                       $5      $4, ->15
          6    > > FE_FETCH_R                                       ~6      $5, !1, ->15
          7    >   ASSIGN                                                   !2, ~6
    4     8        FETCH_CONSTANT                                   ~8      'arr'
          9        CONCAT                                           ~9      ~8, !2
         10        CONCAT                                           ~11     !1, '%0A'
         11        FETCH_W                      local               $10     ~9
         12        ASSIGN                                           ~12     $10, ~11
         13        ECHO                                                     ~12
    3    14      > JMP                                                      ->6
         15    >   FE_FREE                                                  $5
    5    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.43 ms | 1386 KiB | 15 Q