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, ',');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bmd8V
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr, !1 = $cat_limit
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                                         $3      
          5        ASSIGN                                                   !1, $3
          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                                         $6      
         13        ECHO                                                     $6
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.78 ms | 1394 KiB | 19 Q