3v4l.org

run code in 300+ PHP versions simultaneously
<?php $org_array = array( 'hogehoge', 'piyo' => 'piyopiyo', 'fruits' => array( 'apple', 'orange', 'mellon', ), 'city' => array( 'tokyo' => 'meguro', 'osaka' => 'kyobashi', 'hukuoka' => 'hakata', ), 'huga' => array( array('happy', 'bad', 'lucky'), array(100,200,400,800) ), 'game_history' => array( array('name' => 'famicon', 'start' => 1993, 'end'=>2000), array('name' => 'playstation', 'start' => 2000, 'end'=>2006), array('name' => 'wii', 'start' => 2006, 'end'=>2007), ), ); $encode_array = json_encode($org_array); print_r(json_decode($encode_array,true)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cngDd
function name:  (null)
number of ops:  13
compiled vars:  !0 = $org_array, !1 = $encode_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   26     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   28     5        INIT_FCALL                                               'print_r'
          6        INIT_FCALL                                               'json_decode'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
   29    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.48 ms | 1394 KiB | 19 Q