3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[{"name":"Menu","sub":[{"name":"Menu 2","url":"menu-2.php"}]}]'; $array = var_export(json_decode($json,1)[0]); print($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rLA9R
function name:  (null)
number of ops:  12
compiled vars:  !0 = $json, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%7B%22name%22%3A%22Menu%22%2C%22sub%22%3A%5B%7B%22name%22%3A%22Menu+2%22%2C%22url%22%3A%22menu-2.php%22%7D%5D%7D%5D'
    4     1        INIT_FCALL                                               'var_export'
          2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $3      
          6        FETCH_DIM_R                                      ~4      $3, 0
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    5    10        ECHO                                                     !1
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.5 ms | 1394 KiB | 17 Q