3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ["order_itemset" => "{8}"], ["order_itemset" => "{8}"], ["order_itemset" => "{17}"], ["order_itemset" => "{10}"], ["order_itemset" => "{10}"], ["order_itemset" => "{17}"], ["order_itemset" => "{11,10,27}"], ["order_itemset" => "{10}"], ["order_itemset" => "{10,11}"], ]; var_export( array_map( fn($row) => json_decode(strtr($row['order_itemset'], '{}', '[]')), $array ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lpp88
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   15     1        INIT_FCALL                                               'var_export'
   16     2        INIT_FCALL                                               'array_map'
   17     3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
          4        SEND_VAL                                                 ~2
   18     5        SEND_VAR                                                 !0
   16     6        DO_ICALL                                         $3      
   18     7        SEND_VAR                                                 $3
   15     8        DO_ICALL                                                 
   20     9      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lpp88
function name:  {closure}
number of ops:  12
compiled vars:  !0 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'json_decode'
          2        INIT_FCALL                                               'strtr'
          3        FETCH_DIM_R                                      ~1      !0, 'order_itemset'
          4        SEND_VAL                                                 ~1
          5        SEND_VAL                                                 '%7B%7D'
          6        SEND_VAL                                                 '%5B%5D'
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                         $3      
         10      > RETURN                                                   $3
         11*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.72 ms | 1429 KiB | 17 Q