3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.68 ms | 1395 KiB | 19 Q