<?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_decode( json_encode( $org_array ), 1 );
print_r($encode_array);
?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/LOO40
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>
27 1 INIT_FCALL 'json_decode'
2 INIT_FCALL 'json_encode'
3 SEND_VAR !0
4 DO_ICALL $3
5 SEND_VAR $3
6 SEND_VAL 1
7 DO_ICALL $4
8 ASSIGN !1, $4
29 9 INIT_FCALL 'print_r'
10 SEND_VAR !1
11 DO_ICALL
30 12 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
157.67 ms | 1398 KiB | 19 Q