3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bar = range(0, 5); $i = 0; $foo[$i] = $bar[$i++]; var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ivfdr
function name:  (null)
number of ops:  14
compiled vars:  !0 = $bar, !1 = $i, !2 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 5
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    4     5        ASSIGN                                                   !1, 0
    5     6        POST_INC                                         ~7      !1
          7        FETCH_DIM_R                                      ~8      !0, ~7
          8        ASSIGN_DIM                                               !2, !1
          9        OP_DATA                                                  ~8
    6    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.77 ms | 1444 KiB | 15 Q