3v4l.org

run code in 300+ PHP versions simultaneously
<?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 { /** * @ODM\Id(strategy="AUTO") */ protected $id; /** * @ODM\EmbedMany(targetDocument="Trist\Bundle\CommonBundle\Document\Venue\VenueCategory") */ protected $categories; /** * @ODM\EmbedOne(targetDocument="Trist\Bundle\CommonBundle\Document\Venue\VenueContact") */ protected $contact; /** * @ODM\String */ protected $fourSquareVenueId; /** * @ODM\EmbedOne(targetDocument="Trist\Bundle\CommonBundle\Document\Venue\VenueLocation") */ protected $location; /** * @ODM\String */ protected $name; /** * @ODM\EmbedOne(targetDocument="Trist\Bundle\CommonBundle\Document\Venue\VenueStatistics") */ protected $statistics; } $obj = (object)$arr; print_r($obj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mj3NY
function name:  (null)
number of ops:  7
compiled vars:  !0 = $arr, !1 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   98     1        CAST                                          8  ~3      !0
          2        ASSIGN                                                   !1, ~3
  100     3        INIT_FCALL                                               'print_r'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Class Venue: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.94 ms | 1393 KiB | 15 Q