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/NRZvk
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%0A%28%0A++++%5B2%5D+%3D%3E+authenticated+user%0A++++%5B3%5D+%3D%3E+administrator%0A++++%5B6%5D+%3D%3E+employee%0A%29'
   12     1        INCLUDE_OR_EVAL                                          '%24foo+%3D+%24string%3B', EVAL
   13     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:
148.8 ms | 1394 KiB | 15 Q