<?php
$arr = array(
'id' => '4c44c3e074ffc928250576cc',
'name' => 'Salvation Army',
'contact' => array(
'phone' => '2122899617',
'formattedPhone' => '(212) 289-9617'
),
'location' => array
(
'address' => '26 E 125th St',
'crossStreet' => 'btw Madison & 5th Ave',
'lat' => '40.805853703834',
'lng' => '-73.941053819056',
'distance' => '53',
'postalCode' => '10035',
'cc' => 'US',
'city' => 'New York',
'state' => 'NY',
'country' => 'United States'
),
'categories' => Array
(
'id' => '4bf58dd8d48988d101951735',
'name' => 'Thrift / Vintage Store',
'pluralName' => 'Thrift / Vintage Stores',
'shortName' => 'Thrift / Vintage',
'icon' => array
(
'prefix' => 'https://ss1.4sqi.net/img/categories_v2/shops/default_',
'suffix' => '.png'
),
'primary' => '1',
),
'verified' => '',
'restricted' => '1',
'stats' => array
(
'checkinsCount' => '71',
'usersCount' => '46',
'tipCount' => '3'
),
'specials' => array
(
'count' => '0',
'items' => Array()
),
'hereNow' => array
(
'count' => '0',
'groups' => Array()
),
'referralId' => 'v-1393405742'
);
class Venue
{
protected $id;
protected $categories;
protected $contact;
protected $fourSquareVenueId;
protected $location;
protected $name;
protected $statistics;
}
$obj= new stdClass();
foreach ($arr as $k=> $v) {
$obj->{$k} = $v;
}
print_r($obj);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename: /in/hvAFe
function name: (null)
number of ops: 15
compiled vars: !0 = $arr, !1 = $obj, !2 = $v, !3 = $k
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
2 0 E > ASSIGN !0, <array>
71 1 NEW $5 'stdClass'
2 DO_FCALL 0
3 ASSIGN !1, $5
73 4 > FE_RESET_R $8 !0, ->10
5 > > FE_FETCH_R ~9 $8, !2, ->10
6 > ASSIGN !3, ~9
74 7 ASSIGN_OBJ !1, !3
8 OP_DATA !2
73 9 > JMP ->5
10 > FE_FREE $8
77 11 INIT_FCALL 'print_r'
12 SEND_VAR !1
13 DO_ICALL
14 > RETURN 1
Class Venue: [no user functions]
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
151.72 ms | 1386 KiB | 15 Q