3v4l.org

run code in 300+ PHP versions simultaneously
<?php # String as array weirdness $s = "Kitten"; $x = $s['ErrorCode']; print $x; # prints "K"
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/03dqk
function name:  (null)
number of ops:  5
compiled vars:  !0 = $s, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'Kitten'
    5     1        FETCH_DIM_R                                      ~3      !0, 'ErrorCode'
          2        ASSIGN                                                   !1, ~3
    7     3        ECHO                                                     !1
          4      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.59 ms | 987 KiB | 13 Q