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))->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.0100.00618.31
8.3.50.0100.00521.21
8.3.40.0040.01118.72
8.3.30.0100.00319.04
8.3.20.0000.00820.30
8.3.10.0000.00821.80
8.3.00.0070.00022.39
8.2.180.0040.01116.63
8.2.170.0110.00422.96
8.2.160.0030.01020.53
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0110.00726.16
8.2.120.0080.00019.54
8.2.110.0070.00319.45
8.2.100.0000.01317.84
8.2.90.0050.00319.05
8.2.80.0040.00417.97
8.2.70.0080.00017.38
8.2.60.0030.00517.68
8.2.50.0100.00318.07
8.2.40.0040.00418.03
8.2.30.0040.00418.07
8.2.20.0040.00417.64
8.2.10.0000.00717.58
8.2.00.0040.00417.77
8.1.280.0090.00925.92
8.1.270.0030.00620.33
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00322.02
8.1.230.0100.00019.01
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0000.00917.23
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0000.00818.49
8.1.160.0040.00422.21
8.1.150.0030.00718.60
8.1.140.0040.00417.36
8.1.130.0050.00217.82
8.1.120.0000.00717.40
8.1.110.0030.00617.38
8.1.100.0030.00517.36
8.1.90.0040.00417.39
8.1.80.0070.00017.30
8.1.70.0040.00417.38
8.1.60.0000.00917.44
8.1.50.0030.00517.37
8.1.40.0000.00817.34
8.1.30.0030.00617.53
8.1.20.0000.00817.50
8.1.10.0030.00617.52
8.1.00.0000.00717.50
8.0.300.0060.00318.77
8.0.290.0000.00816.63
8.0.280.0000.00718.34
8.0.270.0000.00717.16
8.0.260.0060.00018.40
8.0.250.0000.00716.80
8.0.240.0000.00916.80
8.0.230.0030.00316.84
8.0.220.0030.00316.72
8.0.210.0040.00416.82
8.0.200.0000.00816.92
8.0.190.0000.00716.91
8.0.180.0040.00416.88
8.0.170.0050.00316.79
8.0.160.0040.00416.84
8.0.150.0040.00416.89
8.0.140.0050.00316.79
8.0.130.0030.00313.28
8.0.120.0000.00716.83
8.0.110.0000.00816.84
8.0.100.0040.00416.81
8.0.90.0000.00716.64
8.0.80.0130.00316.84
8.0.70.0000.00716.71
8.0.60.0000.00716.71
8.0.50.0030.00616.75
8.0.30.0150.00316.86
8.0.20.0090.00917.40
8.0.10.0040.00416.84
8.0.00.0070.01116.65
7.4.330.0000.00715.00
7.4.320.0000.00616.57
7.4.300.0000.00716.34
7.4.290.0070.00016.38
7.4.280.0030.00316.36
7.4.270.0030.00316.44
7.4.260.0030.00316.46
7.4.250.0080.00016.48
7.4.240.0080.00016.46
7.4.230.0030.00316.55
7.4.220.0060.01216.58
7.4.210.0100.00916.53
7.4.200.0030.00316.59
7.4.190.0000.00716.64
7.4.160.0130.01016.46
7.4.150.0040.01317.40
7.4.140.0050.01317.86
7.4.130.0130.00516.34
7.4.120.0070.01216.39
7.4.110.0070.01016.34
7.4.100.0090.00916.34
7.4.90.0100.00716.35
7.4.80.0120.00619.39
7.4.70.0120.00316.31
7.4.60.0130.00316.50
7.4.50.0020.00216.48
7.4.40.0060.00922.77
7.4.30.0060.01016.30
7.4.00.0120.00314.93
7.3.330.0020.00213.02
7.3.320.0030.00313.13
7.3.310.0040.00416.25
7.3.300.0000.00716.24
7.3.290.0080.00816.13
7.3.280.0070.00816.20
7.3.270.0140.00517.40
7.3.260.0160.00316.27
7.3.250.0100.00716.27
7.3.240.0040.01516.41
7.3.230.0140.00316.39
7.3.210.0100.00716.28
7.3.200.0210.00019.39
7.3.190.0130.00916.18
7.3.180.0160.00616.14
7.3.170.0090.00916.47
7.3.160.0100.00616.39
7.3.120.0070.01014.90
7.2.330.0090.00916.58
7.2.320.0090.01616.30
7.2.310.0100.01016.35
7.2.300.0130.00316.49
7.2.290.0060.01016.53
7.2.60.0090.00616.73
7.2.00.0050.00519.29
7.1.200.0050.00515.57
7.1.100.0060.00617.52
7.1.70.0040.00416.85
7.1.60.0140.01119.82
7.1.50.0000.01516.89
7.1.00.0000.07722.38
7.0.200.0030.00616.70
7.0.140.0000.07722.08
7.0.90.0470.04019.89
7.0.80.0500.08019.92
7.0.70.0530.07319.97
7.0.60.0530.07319.86
7.0.50.0570.06320.40
7.0.40.0030.05320.10
7.0.30.0070.09020.18
7.0.20.0070.05320.03
7.0.10.0070.05320.16
7.0.00.0130.07020.07
5.6.280.0030.07721.03
5.6.230.0100.07320.69
5.6.220.0030.06320.65
5.6.210.0030.05320.67
5.6.200.0130.08321.04
5.6.190.0070.07321.11
5.6.180.0070.08321.12
5.6.170.0030.08721.03
5.6.160.0030.05721.07
5.6.150.0070.04321.05
5.6.140.0130.07321.05
5.6.130.0030.08721.08
5.6.120.0070.07721.09
5.6.110.0070.07721.16
5.6.100.0030.07321.13
5.6.90.0070.08321.11
5.6.80.0030.05320.44
5.6.70.0100.07720.52
5.6.60.0000.04320.45
5.6.50.0070.07720.48
5.6.40.0000.06320.42
5.6.30.0100.07720.25
5.6.20.0030.07020.36
5.6.10.0100.08020.44
5.6.00.0070.07720.37
5.5.370.0170.04720.46
5.5.360.0030.07320.57
5.5.350.0170.06720.38
5.5.340.0130.07020.79
5.5.330.0170.05320.90
5.5.320.0130.08320.84
5.5.310.0070.07320.64
5.5.300.0030.08020.84
5.5.290.0100.08320.87
5.5.280.0100.07720.91
5.5.270.0070.08320.91
5.5.260.0230.07020.88
5.5.250.0100.05720.58
5.5.240.0070.06320.27
5.5.230.0070.07720.27
5.5.220.0130.06720.16
5.5.210.0070.04320.25
5.5.200.0130.07320.25
5.5.190.0000.08020.27
5.5.180.0070.07720.09
5.5.160.0170.04720.27
5.5.150.0130.07020.00
5.5.140.0070.06020.14
5.5.130.0070.07320.18
5.5.120.0030.05720.13
5.5.110.0030.04720.22
5.5.100.0070.07720.16
5.5.90.0030.07320.17
5.5.80.0130.06720.17
5.5.70.0030.05020.11
5.5.60.0100.07020.04
5.5.50.0030.05320.13
5.5.40.0170.06320.11
5.5.30.0030.04720.10
5.5.20.0100.07720.14
5.5.10.0130.07719.98
5.5.00.0200.06320.08
5.4.450.0070.06019.45
5.4.440.0130.07019.25
5.4.430.0030.08019.45
5.4.420.0070.07719.41
5.4.410.0070.08019.43
5.4.400.0100.06318.95
5.4.390.0130.06719.03
5.4.380.0070.05319.14
5.4.370.0100.07018.95
5.4.360.0100.07319.18
5.4.350.0070.07318.90
5.4.340.0070.07719.12
5.4.320.0230.06719.03
5.4.310.0170.06719.08
5.4.300.0070.08019.03
5.4.290.0070.07719.17
5.4.280.0070.05319.05
5.4.270.0070.03718.88
5.4.260.0230.06019.04
5.4.250.0070.05018.89
5.4.240.0070.07319.08
5.4.230.0030.05719.12
5.4.220.0100.07019.11
5.4.210.0100.07019.15
5.4.200.0170.06719.20
5.4.190.0070.06018.89
5.4.180.0100.07319.20
5.4.170.0000.08319.22
5.4.160.0100.07319.03
5.4.150.0070.08319.10
5.4.140.0070.07016.29
5.4.130.0030.07316.46
5.4.120.0100.03316.38
5.4.110.0130.07016.43
5.4.100.0100.07716.38
5.4.90.0100.07016.52
5.4.80.0030.04716.41
5.4.70.0030.05316.44
5.4.60.0070.05716.35
5.4.50.0070.07016.46
5.4.40.0130.06716.43
5.4.30.0170.05716.36
5.4.20.0070.03316.46
5.4.10.0070.06716.31
5.4.00.0170.04015.82
5.3.290.0130.07314.50
5.3.280.0070.07314.50
5.3.270.0100.07314.56
5.3.260.0170.06714.57
5.3.250.0070.07014.60
5.3.240.0100.04714.54
5.3.230.0070.03714.46
5.3.220.0030.03714.43
5.3.210.0030.06014.52
5.3.200.0130.06714.43
5.3.190.0170.07014.57
5.3.180.0100.05714.53
5.3.170.0100.07014.55
5.3.160.0130.06714.55
5.3.150.0070.08014.40
5.3.140.0070.07714.56
5.3.130.0030.04014.37
5.3.120.0030.08014.52
5.3.110.0070.03714.40
5.3.100.0070.07314.03
5.3.90.0070.06714.03
5.3.80.0100.05013.88
5.3.70.0030.05714.02
5.3.60.0030.07313.91
5.3.50.0030.08013.90
5.3.40.0030.05313.91
5.3.30.0030.04313.84
5.3.20.0000.06713.69
5.3.10.0030.07313.64
5.3.00.0030.07013.62
5.2.170.0030.04011.15
5.2.160.0000.06311.07
5.2.150.0030.06011.22
5.2.140.0000.05710.99
5.2.130.0030.06010.96
5.2.120.0100.06010.96
5.2.110.0070.05010.92
5.2.100.0030.06311.02
5.2.90.0030.06011.05
5.2.80.0070.03311.13
5.2.70.0030.06311.05
5.2.60.0000.05711.11
5.2.50.0100.05711.02
5.2.40.0070.04710.96
5.2.30.0070.04310.79
5.2.20.0100.05310.85
5.2.10.0030.05710.94
5.2.00.0070.05710.78
5.1.60.0000.04010.05
5.1.50.0100.03010.05
5.1.40.0030.0479.82
5.1.30.0100.03010.40
5.1.20.0030.05710.38
5.1.10.0070.04310.07
5.1.00.0100.04710.06
5.0.50.0030.0438.54
5.0.40.0070.0378.43
5.0.30.0000.0638.22
5.0.20.0000.0438.18
5.0.10.0030.0438.21
5.0.00.0070.0408.16
4.4.90.0070.0337.06
4.4.80.0070.0277.06
4.4.70.0000.0307.06
4.4.60.0030.0337.06
4.4.50.0000.0307.06
4.4.40.0100.0477.06
4.4.30.0030.0337.06
4.4.20.0000.0337.06
4.4.10.0030.0237.06
4.4.00.0030.0507.06
4.3.110.0070.0277.06
4.3.100.0000.0337.06
4.3.90.0070.0377.06
4.3.80.0000.0537.06
4.3.70.0030.0337.06
4.3.60.0070.0207.06
4.3.50.0000.0277.06
4.3.40.0000.0337.06
4.3.30.0000.0177.06
4.3.20.0030.0337.06
4.3.10.0000.0377.06
4.3.00.0000.0377.06

preferences:
47.02 ms | 401 KiB | 5 Q