3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s= "123 '".$foo['nonexisting']."'"; $k = "123 '$foo[nonexisting]'"; echo $s; echo $k;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qVp2n
function name:  (null)
number of ops:  12
compiled vars:  !0 = $s, !1 = $foo, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_DIM_R                                      ~3      !1, 'nonexisting'
          1        CONCAT                                           ~4      '123+%27', ~3
          2        CONCAT                                           ~5      ~4, '%27'
          3        ASSIGN                                                   !0, ~5
    3     4        ROPE_INIT                                     3  ~9      '123+%27'
          5        FETCH_DIM_R                                      ~7      !1, 'nonexisting'
          6        ROPE_ADD                                      1  ~9      ~9, ~7
          7        ROPE_END                                      2  ~8      ~9, '%27'
          8        ASSIGN                                                   !2, ~8
    4     9        ECHO                                                     !0
    5    10        ECHO                                                     !2
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.28 ms | 1392 KiB | 13 Q