<?php
$indices = array(
array(
'name' => 'DJIA',
'lastPrice' => 18047.58,
'change' => 28.23,
'changePercent' => 0.16
),
array(
'name' => 'Nasdaq',
'lastPrice' => 4899.27,
'change' => 5.43,
'changePercent' => 0.11
),
array(
'name' => 'S&P 500',
'lastPrice' => 2100.34,
'change' => 3.35,
'changePercent' => 0.16
)
);
$bonds = array(
array(
'name' => '5 Year Bond',
'lastPrice' => 1.63,
'change' => 0.0098,
'changePercent' => 0.61
),
array(
'name' => '10 Year Bond',
'lastPrice' => 2.14,
'change' => -0.0016,
'changePercent' => -0.07
),
array(
'name' => '30 Year Bond',
'lastPrice' => 2.72,
'change' => -0.0154,
'changePercent' => -0.56
),
);
echo json_encode(array('indices' => $indices, 'bonds' => $bonds, 'news' => array('headline' => 'headline', 'body' => 'BODY', 'timestamp' => '1426788611')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/ghnHu
function name: (null)
number of ops: 10
compiled vars: !0 = $indices, !1 = $bonds
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > ASSIGN !0, <array>
23 1 ASSIGN !1, <array>
43 2 INIT_FCALL 'json_encode'
3 INIT_ARRAY ~4 !0, 'indices'
4 ADD_ARRAY_ELEMENT ~4 !1, 'bonds'
5 ADD_ARRAY_ELEMENT ~4 <array>, 'news'
6 SEND_VAL ~4
7 DO_ICALL $5
8 ECHO $5
9 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
167.95 ms | 1394 KiB | 15 Q