3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr='[2,5,"test"]'; $cat_limit = json_decode($arr, true);var_dump($cat_limit); echo implode($cat_limit, ','); $arr2='{"luo":{"item_id": 21,"title": "可口可乐600ml"},"tt":{"item_id": 22,"title": "可口可乐600ml"}}'; $cat_limit = json_decode($arr2, true);var_dump($cat_limit);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f0f8v
function name:  (null)
number of ops:  24
compiled vars:  !0 = $arr, !1 = $cat_limit, !2 = $arr2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5B2%2C5%2C%22test%22%5D'
    3     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
          6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    4     9        INIT_FCALL                                               'implode'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 '%2C'
         12        DO_ICALL                                         $7      
         13        ECHO                                                     $7
    7    14        ASSIGN                                                   !2, '%7B%22luo%22%3A%7B%22item_id%22%3A+21%2C%22title%22%3A+%22%E5%8F%AF%E5%8F%A3%E5%8F%AF%E4%B9%90600ml%22%7D%2C%22tt%22%3A%7B%22item_id%22%3A+22%2C%22title%22%3A+%22%E5%8F%AF%E5%8F%A3%E5%8F%AF%E4%B9%90600ml%22%7D%7D'
    8    15        INIT_FCALL                                               'json_decode'
         16        SEND_VAR                                                 !2
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $9      
         19        ASSIGN                                                   !1, $9
         20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.24 ms | 1395 KiB | 19 Q