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 = (Venue)$arr; print_r($obj);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.250.0030.06018.75
5.4.240.0070.05018.94
5.4.230.0070.06318.85
5.4.220.0130.04718.71
5.4.210.0070.07718.93
5.4.200.0030.06018.91
5.4.190.0030.05718.88
5.4.180.0100.05018.90
5.4.170.0030.08018.74
5.4.160.0230.04018.96
5.4.150.0130.07318.89
5.4.140.0130.04316.44
5.4.130.0170.03716.55
5.4.120.0200.04716.53
5.4.110.0070.06016.47
5.4.100.0030.07316.33
5.4.90.0200.03716.47
5.4.80.0130.04016.38
5.4.70.0130.04316.46
5.4.60.0230.03316.31
5.4.50.0070.05016.38
5.4.40.0170.04016.31
5.4.30.0100.05716.47
5.4.20.0130.04016.42
5.4.10.0130.05716.30
5.4.00.0070.04715.99
5.3.280.0070.05014.69
5.3.270.0130.07314.63
5.3.260.0100.05014.44
5.3.250.0100.04714.61
5.3.240.0070.05314.69
5.3.230.0070.05014.69
5.3.220.0070.05014.77
5.3.210.0130.05014.50
5.3.200.0000.06314.57
5.3.190.0100.05014.79
5.3.180.0200.04314.55
5.3.170.0000.05314.55
5.3.160.0030.05314.66
5.3.150.0030.06014.66
5.3.140.0000.06014.53
5.3.130.0100.05314.52
5.3.120.0100.05014.63
5.3.110.0070.06314.61
5.3.100.0000.06014.14
5.3.90.0030.05014.11
5.3.80.0130.04314.24
5.3.70.0200.03714.18
5.3.60.0130.04313.98
5.3.50.0070.05014.02
5.3.40.0070.05314.04
5.3.30.0070.04713.97
5.3.20.0030.06013.77
5.3.10.0170.03713.73
5.3.00.0100.07013.82

preferences:
145.06 ms | 1398 KiB | 7 Q