3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $hello = ['hi' => 'say hi!']; } $a = new A; $var = "hello['hi']"; eval("echo \$a->$var;");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JEdhh
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    8     3        ASSIGN                                                   !1, 'hello%5B%27hi%27%5D'
   10     4        ROPE_INIT                                     3  ~7      'echo+%24a-%3E'
          5        ROPE_ADD                                      1  ~7      ~7, !1
          6        ROPE_END                                      2  ~6      ~7, '%3B'
          7        INCLUDE_OR_EVAL                                          ~6, EVAL
          8      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.42 ms | 1392 KiB | 13 Q