3v4l.org

run code in 500+ PHP versions simultaneously
<?php $empty_string = ''; $ref = &$empty_string['x']; $ref = 'hello'; var_export($empty_string); print "\n"; $non_empty_string = 'abc'; $ref = &$non_empty_string['x']; $ref = 'hello'; var_export($non_empty_string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dDDi0
function name:  (null)
number of ops:  16
compiled vars:  !0 = $empty_string, !1 = $ref, !2 = $non_empty_string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, ''
    4     1        FETCH_DIM_W                                          $4      !0, 'x'
          2        ASSIGN_REF                                                   !1, $4
    6     3        ASSIGN                                                       !1, 'hello'
    8     4        INIT_FCALL                                                   'var_export'
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                                     
   10     7        ECHO                                                         '%0A'
   12     8        ASSIGN                                                       !2, 'abc'
   13     9        FETCH_DIM_W                                          $9      !2, 'x'
         10        ASSIGN_REF                                                   !1, $9
   15    11        ASSIGN                                                       !1, 'hello'
   17    12        INIT_FCALL                                                   'var_export'
         13        SEND_VAR                                                     !2
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.48 ms | 3438 KiB | 14 Q