3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.43 ms | 1010 KiB | 14 Q