3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "array('a'=>1, 'b'=>2)"; print_r(eval("\$myarray = $str;"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3ZjsZ
function name:  (null)
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'array%28%27a%27%3D%3E1%2C+%27b%27%3D%3E2%29'
    3     1        INIT_FCALL                                               'print_r'
          2        ROPE_INIT                                     3  ~3      '%24myarray+%3D+'
          3        ROPE_ADD                                      1  ~3      ~3, !0
          4        ROPE_END                                      2  ~2      ~3, '%3B'
          5        INCLUDE_OR_EVAL                                  $5      ~2, EVAL
          6        SEND_VAR                                                 $5
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.65 ms | 1394 KiB | 15 Q