3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = json_encode(array(1=>2,3=>'4')); print_r( json_decode('["1":2,"3":4]', 1) ); print_r( json_decode($a,1) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dnW0k
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_encode'
          1        SEND_VAL                                                 <array>
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    3     4        INIT_FCALL                                               'print_r'
    4     5        INIT_FCALL                                               'json_decode'
          6        SEND_VAL                                                 '%5B%221%22%3A2%2C%223%22%3A4%5D'
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'print_r'
    7    12        INIT_FCALL                                               'json_decode'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 1
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        DO_ICALL                                                 
    8    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.86 ms | 1394 KiB | 19 Q