3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '["warna" => ["merah","hitam","navy"], "ukuran" => ["40","41","42","43", "44"]]'; eval('$foo = ' . $string . ' ;'); var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W7ufD
function name:  (null)
number of ops:  8
compiled vars:  !0 = $string, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%22warna%22+%3D%3E+%5B%22merah%22%2C%22hitam%22%2C%22navy%22%5D%2C+%22ukuran%22+%3D%3E+%5B%2240%22%2C%2241%22%2C%2242%22%2C%2243%22%2C+%2244%22%5D%5D'
    5     1        CONCAT                                           ~3      '%24foo+%3D+', !0
          2        CONCAT                                           ~4      ~3, '+%3B'
          3        INCLUDE_OR_EVAL                                          ~4, EVAL
    7     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.6 ms | 998 KiB | 14 Q