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; public function __construct() { $this->categories = new ArrayCollection(); } /** * Get id * * @return id $id */ public function getId() { return $this->id; } /** * Add category * * @param \Trist\Bundle\CommonBundle\Document\Venue\VenueCategory $category */ public function addCategory(VenueCategory $category) { $this->categories[] = $category; } /** * Remove category * * @param \Trist\Bundle\CommonBundle\Document\Venue\VenueCategory $category */ public function removeCategory(VenueCategory $category) { $this->categories->removeElement($category); } /** * Get categories * * @return \Doctrine\Common\Collections\ArrayCollection $categories */ public function getCategories() { return $this->categories; } /** * Set contact * * @param \Trist\Bundle\CommonBundle\Document\Venue\VenueContact $contact * @return self */ public function setContact(VenueContact $contact) { $this->contact = $contact; return $this; } } $obj = json_decode(json_encode($arr)); /* $obj= new stdClass(); foreach ($arr as $k=> $v) { $obj->{$k} = $v; } */ print_r((new ReflectionObject($obj))->getMethods());

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)
8.3.60.0080.01218.31
8.3.50.0120.00521.09
8.3.40.0140.00318.71
8.3.30.0090.00918.84
8.3.20.0040.00420.39
8.3.10.0050.00322.04
8.3.00.0030.00522.38
8.2.180.0090.00616.75
8.2.170.0040.01122.96
8.2.160.0070.01019.04
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0060.01226.16
8.2.120.0040.00419.54
8.2.110.0070.00422.31
8.2.100.0150.00019.21
8.2.90.0000.00919.07
8.2.80.0080.00019.34
8.2.70.0080.00017.38
8.2.60.0050.00317.91
8.2.50.0060.00318.07
8.2.40.0050.00317.97
8.2.30.0000.00818.08
8.2.20.0000.00717.69
8.2.10.0040.00417.69
8.2.00.0000.00717.78
8.1.280.0090.00625.92
8.1.270.0060.00320.27
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00023.91
8.1.230.0040.00719.23
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.00917.23
8.1.190.0040.00417.41
8.1.180.0000.01018.54
8.1.170.0080.00018.57
8.1.160.0000.00922.16
8.1.150.0000.01218.71
8.1.140.0040.00417.46
8.1.130.0040.00417.91
8.1.120.0000.00717.38
8.1.110.0000.00717.34
8.1.100.0000.00717.31
8.1.90.0040.00417.33
8.1.80.0000.00717.34
8.1.70.0040.00417.38
8.1.60.0000.00917.54
8.1.50.0050.00217.52
8.1.40.0000.00817.47
8.1.30.0000.00717.47
8.1.20.0000.00817.59
8.1.10.0050.00317.60
8.1.00.0000.00717.49
8.0.300.0080.00018.77
8.0.290.0050.00217.04
8.0.280.0030.00318.42
8.0.270.0000.00817.23
8.0.260.0030.00316.74
8.0.250.0070.00016.82
8.0.240.0060.00316.90
8.0.230.0030.00316.95
8.0.220.0030.00316.89
8.0.210.0070.00016.84
8.0.200.0000.00716.93
8.0.190.0030.00616.93
8.0.180.0000.00716.75
8.0.170.0040.00416.77
8.0.160.0000.00816.84
8.0.150.0000.00716.79
8.0.140.0040.00416.73
8.0.130.0030.00313.32
8.0.120.0080.00016.81
8.0.110.0040.00416.84
8.0.100.0040.00416.67
8.0.90.0040.00416.68
8.0.80.0110.00316.84
8.0.70.0040.00416.64
8.0.60.0000.00716.85
8.0.50.0040.00416.92
8.0.30.0120.00917.06
8.0.20.0130.00817.40
8.0.10.0070.00017.02
8.0.00.0080.01116.91
7.4.330.0030.00315.00
7.4.320.0000.00616.40
7.4.300.0030.00316.57
7.4.290.0030.00316.48
7.4.280.0030.00616.41
7.4.270.0030.00316.62
7.4.260.0030.00316.35
7.4.250.0050.00316.45
7.4.240.0030.00516.44
7.4.230.0030.00316.36
7.4.220.0100.00716.40
7.4.210.0070.01016.55
7.4.200.0040.00416.31
7.4.190.0030.00316.52
7.4.160.0130.01016.45
7.4.150.0060.01217.40
7.4.140.0090.01417.86
7.4.130.0090.01216.47
7.4.120.0070.01116.47
7.4.110.0070.01616.29
7.4.100.0100.00716.30
7.4.90.0070.01416.35
7.4.80.0090.01519.39
7.4.70.0100.00616.38
7.4.60.0030.01316.46
7.4.50.0040.00016.34
7.4.40.0090.01022.77
7.4.30.0100.00716.58
7.4.00.0070.01114.61
7.3.330.0000.00613.07
7.3.320.0030.00313.02
7.3.310.0070.00016.25
7.3.300.0000.00716.24
7.3.290.0130.00316.24
7.3.280.0060.01216.16
7.3.270.0140.00317.40
7.3.260.0060.01116.25
7.3.250.0100.01216.23
7.3.240.0100.00716.54
7.3.230.0060.01916.39
7.3.210.0100.00716.39
7.3.200.0100.00619.39
7.3.190.0120.00616.29
7.3.180.0130.00316.30
7.3.170.0090.01016.50
7.3.160.0000.01516.32
7.3.120.0100.00614.88
7.2.330.0110.00716.57
7.2.320.0070.01416.56
7.2.310.0060.01716.52
7.2.300.0000.01616.34
7.2.290.0080.00816.65
7.2.00.0040.01419.19
7.1.200.0040.01115.80
7.1.100.0030.01317.87
7.1.70.0030.00716.77
7.1.60.0110.01419.82
7.1.50.0070.01316.83
7.1.00.0070.06022.44
7.0.200.0030.00616.46
7.0.140.0000.05022.17
7.0.90.0770.06720.04
7.0.80.0670.06019.86
7.0.70.0200.08019.88
7.0.60.0530.04719.93
7.0.50.0570.03320.36
7.0.40.0070.05720.10
7.0.30.0100.07720.18
7.0.20.0070.08720.04
7.0.10.0030.09020.17
7.0.00.0070.05020.12
5.6.240.0100.07720.72
5.6.230.0130.05720.70
5.6.220.0070.08020.59
5.6.210.0100.07020.59
5.6.200.0070.08720.96
5.6.190.0100.05021.13
5.6.180.0030.08721.04
5.6.170.0070.06021.04
5.6.160.0100.08021.13
5.6.150.0130.07021.13
5.6.140.0100.08321.11
5.6.130.0100.07721.18
5.6.120.0030.05321.04
5.6.110.0100.08021.11
5.6.100.0030.08020.91
5.6.90.0030.06321.07
5.6.80.0070.08020.37
5.6.70.0030.08320.50
5.6.60.0000.08320.47
5.6.50.0030.08320.39
5.6.40.0200.06720.42
5.6.30.0070.06320.30
5.6.20.0030.07720.46
5.6.10.0000.05020.47
5.6.00.0100.08020.42
5.5.380.0070.05020.44
5.5.370.0030.04720.57
5.5.360.0030.08720.36
5.5.350.0100.07720.47
5.5.340.0030.04020.79
5.5.330.0070.04720.66
5.5.320.0070.07020.80
5.5.310.0170.06320.66
5.5.300.0030.05720.81
5.5.290.0130.07320.90
5.5.280.0070.08320.77
5.5.270.0030.07320.81
5.5.260.0130.07320.74
5.5.250.0070.08720.65
5.5.240.0200.05720.23
5.5.230.0100.08020.28
5.5.220.0130.07320.28
5.5.210.0130.07320.28
5.5.200.0130.06020.23
5.5.190.0100.08020.30
5.5.180.0100.05020.27
5.5.160.0030.09020.24
5.5.150.0170.06720.14
5.5.140.0100.05320.19
5.5.130.0030.05720.20
5.5.120.0100.07020.30
5.5.110.0100.08320.26
5.5.100.0170.07020.09
5.5.90.0100.07320.09
5.5.80.0030.06320.11
5.5.70.0030.04719.98
5.5.60.0100.06020.05
5.5.50.0070.08020.11
5.5.40.0070.05020.16
5.5.30.0070.06020.15
5.5.20.0030.04320.12
5.5.10.0030.08320.05
5.5.00.0030.08020.03
5.4.450.0030.07719.17
5.4.440.0170.07319.22
5.4.430.0030.08019.44
5.4.420.0030.05719.27
5.4.410.0200.06319.22
5.4.400.0070.06719.08
5.4.390.0070.07719.05
5.4.380.0070.06019.03
5.4.370.0100.07019.05
5.4.360.0000.08718.90
5.4.350.0030.08319.09
5.4.340.0000.06719.18
5.4.320.0070.07319.13
5.4.310.0100.06719.04
5.4.300.0100.07018.88
5.4.290.0030.04719.04
5.4.280.0100.07319.12
5.4.270.0070.07019.22
5.4.260.0070.07319.20
5.4.250.0070.06319.17
5.4.240.0100.05019.11
5.4.230.0100.07018.90
5.4.220.0030.08318.87
5.4.210.0030.05019.11
5.4.200.0070.08019.04
5.4.190.0130.06718.89
5.4.180.0030.04318.89
5.4.170.0030.07719.03
5.4.160.0100.05719.01
5.4.150.0100.08019.16
5.4.140.0070.07016.47
5.4.130.0100.06716.38
5.4.120.0030.03716.36
5.4.110.0070.07316.52
5.4.100.0000.07716.39
5.4.90.0130.06716.53
5.4.80.0030.07316.36
5.4.70.0070.07316.39
5.4.60.0130.06016.38
5.4.50.0130.06016.36
5.4.40.0070.04016.30
5.4.30.0070.04016.36
5.4.20.0070.07316.48
5.4.10.0000.08016.36
5.4.00.0100.05315.85
5.3.290.0030.05714.68
5.3.280.0030.04714.45
5.3.270.0130.07314.43
5.3.260.0100.07314.59
5.3.250.0000.05314.46
5.3.240.0070.07014.60
5.3.230.0030.05714.51
5.3.220.0070.07314.39
5.3.210.0070.04714.53
5.3.200.0070.07314.56
5.3.190.0130.07014.43
5.3.180.0070.07714.56
5.3.170.0030.05314.52
5.3.160.0030.07714.52
5.3.150.0100.07314.42
5.3.140.0100.06314.57
5.3.130.0070.04014.54
5.3.120.0030.06714.51
5.3.110.0130.05314.40
5.3.100.0030.06313.90
5.3.90.0100.07013.84
5.3.80.0100.05014.02
5.3.70.0100.03313.98
5.3.60.0030.04013.87
5.3.50.0030.06313.84
5.3.40.0030.05713.96
5.3.30.0030.07313.90
5.3.20.0000.07313.55
5.3.10.0000.06313.65
5.3.00.0070.07713.61
5.2.170.0030.06711.62
5.2.160.0100.05711.62
5.2.150.0130.05011.62
5.2.140.0130.03311.62
5.2.130.0070.03011.62
5.2.120.0030.06011.62
5.2.110.0030.06011.62
5.2.100.0100.05711.62
5.2.90.0000.04011.62
5.2.80.0030.06011.62
5.2.70.0030.05311.62
5.2.60.0130.05011.62
5.2.50.0070.06011.62
5.2.40.0000.04711.62
5.2.30.0100.03711.62
5.2.20.0030.06711.62
5.2.10.0000.06011.62
5.2.00.0070.03011.62
5.1.60.0130.02011.62
5.1.50.0030.04711.62
5.1.40.0030.05311.62
5.1.30.0070.05711.62
5.1.20.0100.03311.62
5.1.10.0030.06011.62
5.1.00.0030.04011.62
5.0.50.0070.04311.62
5.0.40.0030.04711.62
5.0.30.0000.06311.62
5.0.20.0030.04011.62
5.0.10.0030.04711.62
5.0.00.0030.03311.62
4.4.90.0030.02311.62
4.4.80.0030.03311.62
4.4.70.0000.04011.62
4.4.60.0100.01011.62
4.4.50.0000.03311.62
4.4.40.0070.05011.62
4.4.30.0030.03011.62
4.4.20.0030.02311.62
4.4.10.0030.03711.62
4.4.00.0000.04011.62
4.3.110.0030.01311.62
4.3.100.0030.02011.62
4.3.90.0000.02711.62
4.3.80.0000.05711.62
4.3.70.0000.01711.62
4.3.60.0030.01311.62
4.3.50.0030.01311.62
4.3.40.0000.04011.62
4.3.30.0030.02711.62
4.3.20.0000.02311.62
4.3.10.0030.02011.62
4.3.00.0030.01711.62

preferences:
38.32 ms | 401 KiB | 5 Q