3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $arr[0]="foobar"; echo "x = ${arr[0]}"; echo "x = {$arr[0]}";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LIUEt
function name:  (null)
number of ops:  12
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !0, 0
          2        OP_DATA                                                  'foobar'
    4     3        NOP                                                      
          4        FETCH_DIM_R                                      ~3      !0, 0
          5        FAST_CONCAT                                      ~4      'x+%3D+', ~3
          6        ECHO                                                     ~4
    5     7        NOP                                                      
          8        FETCH_DIM_R                                      ~5      !0, 0
          9        FAST_CONCAT                                      ~6      'x+%3D+', ~5
         10        ECHO                                                     ~6
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.52 ms | 1393 KiB | 13 Q