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); var_dump(var_export(array(2 => 'authenticated user', 3 => 'administrator', 6 => 'employee'), TRUE));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nKbF3
function name:  (null)
number of ops:  13
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%2C%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                                                 
   13     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'var_export'
          7        SEND_VAL                                                 <array>
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.13 ms | 1394 KiB | 17 Q