3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<STRING array ( 2 => 'authenticated user', 3 => 'administrator', 6 => 'employee' ) STRING; eval('$foo = $string;'); var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0UZ5l
function name:  (null)
number of ops:  6
compiled vars:  !0 = $string, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'array+%28%0A++2+%3D%3E+%27authenticated+user%27%2C%0A++3+%3D%3E+%27administrator%27%2C%0A++6+%3D%3E+%27employee%27%0A%29'
   11     1        INCLUDE_OR_EVAL                                          '%24foo+%3D+%24string%3B', EVAL
   12     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.03 ms | 1393 KiB | 15 Q