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);

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.70.0170.00716.50
8.3.60.0090.01218.35
8.3.50.0070.00821.07
8.3.40.0140.00018.55
8.3.30.0170.00318.96
8.3.20.0040.00420.26
8.3.10.0050.00522.14
8.3.00.0000.00722.39
8.2.180.0030.01616.63
8.2.170.0040.01122.96
8.2.160.0100.00320.33
8.2.150.0040.00424.18
8.2.140.0150.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00819.54
8.2.110.0030.00622.06
8.2.100.0040.00719.40
8.2.90.0000.00819.13
8.2.80.0080.00017.97
8.2.70.0050.00317.50
8.2.60.0050.00317.80
8.2.50.0030.00618.07
8.2.40.0000.00918.09
8.2.30.0050.00518.07
8.2.20.0040.00417.55
8.2.10.0040.00417.55
8.2.00.0050.00317.66
8.1.280.0170.00325.92
8.1.270.0070.00320.29
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00924.00
8.1.230.0070.00419.08
8.1.220.0060.00517.74
8.1.210.0040.00418.77
8.1.200.0050.00517.22
8.1.190.0080.00017.18
8.1.180.0000.00918.70
8.1.170.0050.00318.64
8.1.160.0040.00422.18
8.1.150.0090.00018.54
8.1.140.0000.00817.38
8.1.130.0000.00717.82
8.1.120.0030.00317.31
8.1.110.0040.00417.32
8.1.100.0000.00817.27
8.1.90.0030.00317.39
8.1.80.0040.00417.30
8.1.70.0040.00417.35
8.1.60.0080.00017.49
8.1.50.0000.00717.52
8.1.40.0040.00417.37
8.1.30.0030.00617.58
8.1.20.0080.00017.61
8.1.10.0040.00417.45
8.1.00.0040.00417.28
8.0.300.0040.00418.77
8.0.290.0070.00017.05
8.0.280.0030.00518.39
8.0.270.0030.00317.26
8.0.260.0030.00316.81
8.0.250.0070.00016.81
8.0.240.0040.00416.77
8.0.230.0070.00016.90
8.0.220.0040.00416.75
8.0.210.0000.00716.84
8.0.200.0000.00616.93
8.0.190.0060.00316.79
8.0.180.0070.00016.91
8.0.170.0000.00716.89
8.0.160.0000.00816.77
8.0.150.0000.00816.82
8.0.140.0040.00416.77
8.0.130.0050.00013.26
8.0.120.0000.00716.78
8.0.110.0000.00716.73
8.0.100.0050.00216.67
8.0.90.0070.00016.86
8.0.80.0070.01016.82
8.0.70.0040.00416.71
8.0.60.0040.00416.78
8.0.50.0040.00416.79
8.0.30.0070.01217.04
8.0.20.0120.00617.40
8.0.10.0000.00716.83
8.0.00.0080.01016.67
7.4.330.0050.00015.00
7.4.320.0030.00316.52
7.4.300.0060.00016.43
7.4.290.0000.00716.40
7.4.280.0040.00416.41
7.4.270.0080.00016.58
7.4.260.0030.00516.52
7.4.250.0040.00416.39
7.4.240.0050.00216.50
7.4.230.0030.00316.26
7.4.220.0150.00416.68
7.4.210.0070.00916.62
7.4.200.0030.00516.59
7.4.190.0040.00416.62
7.4.160.0070.01416.50
7.4.150.0140.00817.40
7.4.140.0270.01017.86
7.4.130.0100.00716.55
7.4.120.0080.00916.48
7.4.110.0100.00716.62
7.4.100.0100.00716.41
7.4.90.0090.01016.55
7.4.80.0030.01819.39
7.4.70.0060.00916.48
7.4.60.0100.00716.41
7.4.50.0070.00016.48
7.4.40.0060.00922.77
7.4.30.0130.00316.53
7.4.00.0000.01515.12
7.3.330.0020.00213.02
7.3.320.0030.00313.31
7.3.310.0000.00716.19
7.3.300.0000.00716.23
7.3.290.0070.00716.17
7.3.280.0060.00816.22
7.3.270.0040.01217.40
7.3.260.0140.00516.29
7.3.250.0110.01116.49
7.3.240.0090.01316.22
7.3.230.0130.00616.39
7.3.210.0070.01416.23
7.3.200.0110.00619.39
7.3.190.0060.01116.30
7.3.180.0130.00316.18
7.3.170.0100.00616.33
7.3.160.0060.00916.33
7.3.120.0040.01114.68
7.3.110.0060.00914.55
7.3.100.0090.00614.96
7.3.90.0040.00414.63
7.3.80.0040.01114.65
7.3.70.0030.01014.80
7.3.60.0040.01214.87
7.3.50.0070.01014.73
7.3.40.0070.00714.61
7.3.30.0090.00914.74
7.3.20.0060.00916.50
7.3.10.0050.00816.60
7.3.00.0100.00416.35
7.2.330.0090.00916.72
7.2.320.0070.01416.43
7.2.310.0070.01316.53
7.2.300.0120.00916.45
7.2.290.0080.00816.34
7.2.240.0060.00915.08
7.2.230.0030.00715.16
7.2.220.0120.00315.05
7.2.210.0000.00814.63
7.2.200.0120.00315.01
7.2.190.0100.00314.67
7.2.180.0000.01214.95
7.2.170.0030.01015.01
7.2.160.0030.00714.92
7.2.150.0090.00616.60
7.2.140.0070.00716.73
7.2.130.0080.00816.63
7.2.120.0030.00916.74
7.2.110.0040.00916.64
7.2.100.0080.00616.71
7.2.90.0060.00816.86
7.2.80.0030.01216.74
7.2.70.0050.00916.73
7.2.60.0020.00916.75
7.2.50.0060.00716.75
7.2.40.0060.00916.75
7.2.30.0050.01016.80
7.2.20.0080.00316.82
7.2.10.0020.01116.92
7.2.00.0040.00917.57
7.1.330.0090.00315.98
7.1.320.0030.00715.94
7.1.310.0170.00015.47
7.1.300.0030.00915.86
7.1.290.0000.01515.80
7.1.280.0000.01215.82
7.1.270.0060.01015.75
7.1.260.0130.00315.70
7.1.250.0050.00915.63
7.1.100.0060.00318.19
7.1.70.0000.00716.98
7.1.60.0100.01419.82
7.1.50.0100.01316.64
7.1.00.0030.07322.42
7.0.200.0030.00716.85
7.0.140.0070.06322.18
7.0.60.0100.07319.94
7.0.50.0000.07317.88
7.0.40.0200.07320.11
7.0.30.0200.04320.13
7.0.20.0270.08720.08
7.0.10.0170.04320.07
7.0.00.0170.08020.09
5.6.280.0030.07721.16
5.6.210.0000.08020.63
5.6.200.0130.07718.27
5.6.190.0100.05020.62
5.6.180.3530.04320.67
5.6.170.0270.07320.44
5.6.160.0030.04320.71
5.6.150.0070.05718.17
5.6.140.0070.05018.32
5.6.130.0130.07318.32
5.6.120.0070.04020.96
5.6.110.0270.07021.12
5.6.100.0130.07721.01
5.6.90.0170.08020.96
5.6.80.0130.06720.40
5.5.350.0130.08320.47
5.5.340.0130.07018.07
5.5.330.0070.06720.27
5.5.320.0170.05720.51
5.5.310.0270.07720.26
5.5.300.0030.04018.04
5.5.290.0070.05318.03
5.5.280.0070.04720.80
5.5.270.0070.04020.65
5.5.260.0030.07020.80
5.5.250.0100.08020.80
5.5.240.0070.07720.16
5.4.450.0230.06719.56
5.4.440.0630.06319.43
5.4.430.0270.05319.46
5.4.420.0600.07019.60
5.4.410.0330.08019.03
5.4.400.1200.05018.76
5.4.390.1000.05718.73
5.4.380.0330.05718.76
5.4.370.0170.05018.73
5.4.360.0200.04718.59
5.4.350.0060.04612.03
5.4.340.0130.04212.03
5.4.320.0070.04312.51
5.4.310.0070.04212.51
5.4.300.0100.03812.51
5.4.290.0110.03312.51
5.4.280.0040.03812.41
5.4.270.0080.04612.41
5.4.260.0100.03912.41
5.4.250.0100.05019.00
5.4.240.0070.05318.80
5.4.230.0200.04318.90
5.4.220.0100.06019.01
5.4.210.0100.05018.84
5.4.200.0070.05018.80
5.4.190.0070.05318.80
5.4.180.0000.05718.96
5.4.170.0130.07019.14
5.4.160.0170.05318.94
5.4.150.0170.04718.97
5.4.140.0100.06016.33
5.4.130.0000.05716.55
5.4.120.0130.06316.38
5.4.110.0100.04716.54
5.4.100.0100.04316.67
5.4.90.0170.04016.34
5.4.80.0100.04316.40
5.4.70.0130.04016.40
5.4.60.0070.04716.48
5.4.50.0030.05016.39
5.4.40.0030.05016.59
5.4.30.0070.05016.59
5.4.20.0130.04316.38
5.4.10.0030.05316.38
5.4.00.0000.05316.03
5.3.290.0110.04012.80
5.3.280.0130.04714.79
5.3.270.0130.06714.78
5.3.260.0030.05714.63
5.3.250.0100.06314.46
5.3.240.0200.04014.74
5.3.230.0170.04314.62
5.3.220.0070.05014.54
5.3.210.0070.05014.71
5.3.200.0070.05014.56
5.3.190.0100.06014.66
5.3.180.0070.04714.54
5.3.170.0000.05714.54
5.3.160.0030.05014.59
5.3.150.0130.04714.66
5.3.140.0070.05014.55
5.3.130.0100.05314.54
5.3.120.0070.05314.71
5.3.110.0170.04314.64
5.3.100.0000.05714.20
5.3.90.0070.05314.01
5.3.80.0100.04713.85
5.3.70.0100.05714.01
5.3.60.0100.04313.99
5.3.50.0030.05014.13
5.3.40.0070.04713.86
5.3.30.0130.04713.82
5.3.20.0100.04713.79
5.3.10.0070.04713.65
5.3.00.0100.06713.71
5.2.170.0230.04711.14
5.2.160.0130.03311.14
5.2.150.0100.03711.12
5.2.140.0100.03711.13
5.2.130.0070.04011.11
5.2.120.0070.04010.94
5.2.110.0100.03711.11
5.2.100.0030.04311.09
5.2.90.0030.04711.29
5.2.80.0170.03011.28
5.2.70.0000.04711.07
5.2.60.0070.03710.91
5.2.50.0030.04310.93
5.2.40.0100.03311.09
5.2.30.0070.04011.06
5.2.20.0000.04311.19
5.2.10.0030.04010.70
5.2.00.0070.03710.83
5.1.60.0100.0439.99
5.1.50.0070.0309.98
5.1.40.0100.02710.14
5.1.30.0100.03310.50
5.1.20.0070.03710.52
5.1.10.0070.03310.16
5.1.00.0000.04010.27
5.0.50.0000.0308.50
5.0.40.0030.0278.39
5.0.30.0000.0478.23
5.0.20.0030.0278.26
5.0.10.0070.0238.23
5.0.00.0030.0408.08
4.4.90.0000.0237.17
4.4.80.0030.0177.17
4.4.70.0100.0107.17
4.4.60.0000.0207.17
4.4.50.0000.0237.17
4.4.40.0030.0307.17
4.4.30.0000.0207.17
4.4.20.0000.0207.17
4.4.10.0000.0207.17
4.4.00.0030.0307.17
4.3.110.0000.0237.17
4.3.100.0000.0207.17
4.3.90.0000.0207.17
4.3.80.0030.0307.17
4.3.70.0030.0177.17
4.3.60.0070.0137.17
4.3.50.0030.0207.17
4.3.40.0030.0307.17
4.3.30.0030.0207.17
4.3.20.0030.0207.17
4.3.10.0000.0237.17
4.3.00.0100.0306.41

preferences:
35.19 ms | 401 KiB | 5 Q