3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.11 ms | 2073 KiB | 15 Q