3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'array ( 2 => "authenticated user, 6 => employee",)'; eval('$foo = $string;'); print_r($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iQ6cB
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+2+%3D%3E+%22authenticated+user%2C+6+%3D%3E+employee%22%2C%29'
    4     1        INCLUDE_OR_EVAL                                          '%24foo+%3D+%24string%3B', EVAL
    5     2        INIT_FCALL                                               'print_r'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.21 ms | 1393 KiB | 15 Q