3v4l.org

run code in 300+ PHP versions simultaneously
<?php $open_rates = []; $open_rates["x"]["0"] = "Sun"; $open_rates["x"]["2"] = "Mon"; var_dump(json_encode($open_rates)); $open_rates["x"] = array_values($open_rates["x"]); var_dump(json_encode($open_rates));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ONWtn
function name:  (null)
number of ops:  26
compiled vars:  !0 = $open_rates
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_W                                      $2      !0, 'x'
          2        ASSIGN_DIM                                               $2, 0
          3        OP_DATA                                                  'Sun'
    4     4        FETCH_DIM_W                                      $4      !0, 'x'
          5        ASSIGN_DIM                                               $4, 2
          6        OP_DATA                                                  'Mon'
    5     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'json_encode'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                                 
    6    13        INIT_FCALL                                               'array_values'
         14        FETCH_DIM_R                                      ~9      !0, 'x'
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                         $10     
         17        ASSIGN_DIM                                               !0, 'x'
         18        OP_DATA                                                  $10
    7    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'json_encode'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $11     
         23        SEND_VAR                                                 $11
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.8 ms | 1395 KiB | 19 Q