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 { protected $id; protected $categories; protected $contact; protected $fourSquareVenueId; protected $location; protected $name; protected $statistics; } $obj = json_decode(json_encode($arr)); /* $obj= new stdClass(); foreach ($arr as $k=> $v) { $obj->{$k} = $v; } */ print_r(new ReflectionObject(($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.0070.05718.90
5.4.240.0100.05318.71
5.4.230.0000.06319.04
5.4.220.0030.05718.85
5.4.210.0130.04318.97
5.4.200.0130.05018.73
5.4.190.0070.07318.70
5.4.180.0100.05718.88
5.4.170.0170.05018.86
5.4.160.0030.05718.90
5.4.150.0230.04019.02
5.4.140.0130.06716.54
5.4.130.0100.04716.43
5.4.120.0230.05716.62
5.4.110.0070.05316.48
5.4.100.0070.05016.52
5.4.90.0000.06016.59
5.4.80.0100.04716.50
5.4.70.0100.04316.40
5.4.60.0100.06716.59
5.4.50.0030.05316.31
5.4.40.0070.05016.46
5.4.30.0200.04316.54
5.4.20.0030.05016.45
5.4.10.0130.05716.38
5.4.00.0130.04716.05
5.3.280.0030.06714.50
5.3.270.0100.05014.38
5.3.260.0100.06714.49
5.3.250.0070.05014.38
5.3.240.0030.07714.48
5.3.230.0070.05714.48
5.3.220.0070.05314.57
5.3.210.0130.05014.62
5.3.200.0170.05714.66
5.3.190.0230.03714.46
5.3.180.0070.07314.34
5.3.170.0300.06014.43
5.3.160.0070.05314.66
5.3.150.0070.07014.41
5.3.140.0030.07714.35
5.3.130.0030.06014.39
5.3.120.0170.05014.57
5.3.110.0070.05314.43
5.3.100.0100.05014.06
5.3.90.0030.07714.17
5.3.80.0130.06314.02
5.3.70.0170.06013.91
5.3.60.0100.06714.02
5.3.50.0130.06013.89
5.3.40.0030.07013.65
5.3.30.0100.05713.90
5.3.20.0100.06313.56
5.3.10.0030.06313.54
5.3.00.0070.05013.41

preferences:
149.01 ms | 1394 KiB | 7 Q