3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "resultsPage": { "results": { "event": [{ "id": 11129128, "type": "Concert", "uri": "http://www.songkick.com/concerts/11129128-wild-flag-at-fillmore?utm_source=PARTNER_ID&utm_medium=partner", "displayName": "Wild Flag at The Fillmore (April 18, 2012)", "start": { "time": "20:00:00", "date": "2012-04-18", "datetime": "2012-04-18T20:00:00-0800" }, "performance": [{ "artist": { "uri": "http://www.songkick.com/artists/29835-wild-flag?utm_source=PARTNER_ID&utm_medium=partner", "displayName": "Wild Flag", "id": 29835, "identifier": [] }, "displayName": "Wild Flag", "billingIndex": 1, "id": 21579303, "billing": "headline" }], "location": { "city": "San Francisco, CA, US", "lng": -122.4332937, "lat": 37.7842398 }, "venue": { "id": 6239, "displayName": "The Fillmore", "uri": "http://www.songkick.com/venues/6239-fillmore?utm_source=PARTNER_ID&utm_medium=partner", "lng": -122.4332937, "lat": 37.7842398, "metroArea": { "uri": "http://www.songkick.com/metro_areas/26330-us-sf-bay-area?utm_source=PARTNER_ID&utm_medium=partner", "displayName": "SF Bay Area", "country": { "displayName": "US" }, "id": 26330, "state": { "displayName": "CA" } } }, "status": "ok", "popularity": 0.012763 }] }, "totalEntries": 24, "perPage": 50, "page": 1, "status": "ok" } }'; $data = json_decode($json, true); // Example: foreach ($data['resultsPage']['results']['event'] as $event) { echo "id: {$event['id']}\n"; echo "name: {$event['displayName']}\n"; } echo "\n\n\n"; var_dump($data);

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.0090.00618.56
8.3.50.0110.00716.27
8.3.40.0150.00018.64
8.3.30.0130.00618.85
8.3.20.0080.00020.20
8.3.10.0040.00422.13
8.3.00.0040.00420.95
8.2.180.0190.00016.50
8.2.170.0070.00722.96
8.2.160.0000.01419.45
8.2.150.0030.00624.18
8.2.140.0030.00624.66
8.2.130.0050.00319.31
8.2.120.0000.00826.35
8.2.110.0070.00322.16
8.2.100.0000.01117.84
8.2.90.0030.00519.17
8.2.80.0080.00018.16
8.2.70.0000.00917.75
8.2.60.0030.00517.93
8.2.50.0070.00018.16
8.2.40.0070.00020.47
8.2.30.0050.00319.34
8.2.20.0040.00418.11
8.2.10.0000.00818.15
8.2.00.0040.00418.02
8.1.280.0140.00725.92
8.1.270.0130.00323.99
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0120.00022.18
8.1.230.0080.00422.17
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0030.00617.13
8.1.180.0040.00418.10
8.1.170.0000.00918.57
8.1.160.0040.00418.88
8.1.150.0000.00921.96
8.1.140.0070.00019.53
8.1.130.0040.00420.68
8.1.120.0040.00417.39
8.1.110.0070.00017.47
8.1.100.0000.00817.47
8.1.90.0050.00317.50
8.1.80.0040.00417.38
8.1.70.0000.00717.50
8.1.60.0030.00617.61
8.1.50.0040.00417.51
8.1.40.0040.00717.49
8.1.30.0030.00617.59
8.1.20.0050.00217.59
8.1.10.0000.00817.57
8.1.00.0000.00817.52
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0050.00218.49
8.0.270.0030.00317.25
8.0.260.0000.00718.82
8.0.250.0040.00416.86
8.0.240.0000.00816.96
8.0.230.0040.00416.94
8.0.220.0070.00016.95
8.0.210.0030.00316.91
8.0.200.0000.00816.85
8.0.190.0090.00016.87
8.0.180.0040.00416.89
8.0.170.0050.00316.85
8.0.160.0080.00016.86
8.0.150.0030.00516.76
8.0.140.0040.00416.71
8.0.130.0000.00813.34
8.0.120.0040.00416.88
8.0.110.0040.00416.84
8.0.100.0040.00416.82
8.0.90.0000.00716.88
8.0.80.0090.00616.93
8.0.70.0000.00816.80
8.0.60.0040.00416.93
8.0.50.0040.00416.75
8.0.30.0120.00917.18
8.0.20.0090.01117.40
8.0.10.0040.00416.96
8.0.00.0090.01117.02
7.4.330.0060.00015.55
7.4.320.0030.00616.43
7.4.300.0000.00716.43
7.4.290.0030.00516.55
7.4.280.0000.00716.62
7.4.270.0060.00316.53
7.4.260.0000.01016.45
7.4.250.0030.00516.62
7.4.240.0050.00316.63
7.4.230.0050.00316.75
7.4.220.0100.01016.58
7.4.210.0040.01416.40
7.4.200.0030.00516.73
7.4.160.0110.00716.57
7.4.150.0090.01217.40
7.4.140.0170.00617.86
7.4.130.0100.01016.55
7.4.120.0140.00716.60
7.4.110.0130.00516.79
7.4.100.0080.01116.50
7.4.90.0150.00316.41
7.4.80.0160.00419.39
7.4.70.0140.00916.50
7.4.60.0100.00716.37
7.4.50.0120.00616.67
7.4.40.0190.00016.47
7.4.30.0100.01016.46
7.4.10.0060.00914.61
7.4.00.0070.00915.25
7.3.330.0050.00313.11
7.3.320.0000.00713.21
7.3.310.0000.00716.33
7.3.300.0040.00416.27
7.3.290.0100.00816.32
7.3.280.0080.00916.29
7.3.270.0070.01117.40
7.3.260.0050.01516.28
7.3.250.0140.00916.44
7.3.240.0130.00916.38
7.3.230.0140.00416.28
7.3.210.0090.00916.29
7.3.200.0110.00716.33
7.3.190.0100.00716.38
7.3.180.0120.00616.59
7.3.170.0050.01016.37
7.3.160.0130.01316.37
7.3.130.0130.00614.85
7.3.120.0030.01414.86
7.3.110.0040.01514.92
7.3.100.0060.00914.54
7.3.90.0040.01414.76
7.3.80.0040.01114.95
7.3.70.0060.00614.83
7.3.60.0000.01214.82
7.3.50.0040.00914.96
7.3.40.0090.00614.66
7.3.30.0110.00314.67
7.3.20.0000.01416.71
7.3.10.0080.00716.63
7.3.00.0050.00716.22
7.2.330.0040.01616.63
7.2.320.0080.01216.84
7.2.310.0090.01616.75
7.2.300.0070.01516.78
7.2.290.0090.01316.83
7.2.260.0170.00315.11
7.2.250.0070.01315.15
7.2.240.0080.00814.96
7.2.230.0110.00414.95
7.2.220.0030.01214.82
7.2.210.0090.00315.32
7.2.200.0120.00415.19
7.2.190.0100.00715.15
7.2.180.0000.01014.90
7.2.170.0120.00315.01
7.2.160.0100.00015.16
7.2.150.0070.00716.68
7.2.140.0120.00316.91
7.2.130.0060.00716.73
7.2.120.0050.00716.86
7.2.110.0030.00916.91
7.2.100.0080.00916.84
7.2.90.0050.00816.86
7.2.80.0080.00716.91
7.2.70.0060.01016.82
7.2.60.0030.00916.93
7.2.50.0090.00616.87
7.2.40.0030.01017.07
7.2.30.0080.00616.88
7.2.20.0080.00516.93
7.2.10.0090.00716.81
7.2.00.0050.01016.94
7.1.330.0090.00315.85
7.1.320.0060.00715.80
7.1.310.0060.00915.92
7.1.300.0080.00315.78
7.1.290.0090.00615.68
7.1.280.0060.00915.98
7.1.270.0000.01015.62
7.1.260.0070.01015.70
7.1.250.0060.00615.78
7.1.240.0070.00715.87
7.1.230.0100.00315.70
7.1.220.0040.01116.01
7.1.210.0110.00315.39
7.1.200.0090.00315.87
7.1.190.0060.00915.94
7.1.180.0100.00315.53
7.1.170.0040.00715.83
7.1.160.0070.00715.74
7.1.150.0040.01215.79
7.1.140.0070.00315.83
7.1.130.0000.01415.78
7.1.120.0000.01515.81
7.1.110.0060.00616.00
7.1.100.0110.00315.99
7.1.90.0090.00915.51
7.1.80.0080.01016.92
7.1.70.0050.01116.46
7.1.60.0150.01025.14
7.1.50.0170.00825.34
7.1.40.0170.00625.09
7.1.30.0130.01324.99
7.1.20.0130.01225.14
7.1.10.0020.01415.98
7.1.00.0050.01616.21
7.0.330.0030.01215.42
7.0.320.0030.00715.29
7.0.310.0070.00315.23
7.0.300.0070.00715.31
7.0.290.0060.00915.43
7.0.280.0060.00915.40
7.0.270.0040.01515.38
7.0.260.0030.00915.29
7.0.250.0130.00715.37
7.0.240.0030.01315.19
7.0.230.0100.00715.37
7.0.220.0090.00315.60
7.0.210.0080.00615.09
7.0.200.0120.00216.03
7.0.190.0030.01215.90
7.0.180.0000.01315.69
7.0.170.0070.00715.54
7.0.160.0020.01515.77
7.0.150.0060.00815.74
7.0.140.0060.01315.75
7.0.130.0070.00915.81
7.0.120.0060.00715.93
7.0.110.0060.00915.85
7.0.100.0060.00915.78
7.0.90.0040.00915.77
7.0.80.0080.00715.84
7.0.70.0080.00915.82
7.0.60.0080.00715.63
7.0.50.0050.01015.84
7.0.40.0050.01115.00
7.0.30.0060.01315.06
7.0.20.0040.01115.05
7.0.10.0080.00914.85
7.0.00.0040.00814.87
5.6.400.0040.01214.37
5.6.390.0030.00614.52
5.6.380.0060.01214.26
5.6.370.0100.00714.48
5.6.360.0090.00914.35
5.6.350.0110.00714.50
5.6.340.0060.00614.21
5.6.330.0040.01014.23
5.6.320.0000.01714.54
5.6.310.0070.00714.33
5.6.300.0030.00914.34
5.6.290.0100.00014.35
5.6.280.0000.01514.69
5.6.270.0070.00414.34
5.6.260.0060.01214.28
5.6.250.0030.01014.23
5.6.240.0060.00914.18
5.6.230.0060.00314.30
5.6.220.0130.00014.16
5.6.210.0110.00414.11
5.6.200.0100.00714.35
5.6.190.0080.00814.16
5.6.180.0130.00013.98
5.6.170.0030.01314.55
5.6.160.0070.01014.18
5.6.150.0090.00614.04
5.6.140.0030.00614.16
5.6.130.0100.00614.18
5.6.120.0060.00914.38
5.6.110.0030.00814.09
5.6.100.0070.01114.30
5.6.90.0060.01013.96
5.6.80.0150.00014.64
5.6.70.0070.00714.18
5.6.60.0070.00314.22
5.6.50.0060.00614.28
5.6.40.0070.00714.20
5.6.30.0060.00614.22
5.6.20.0000.01214.15
5.6.10.0030.00614.25
5.6.00.0080.00414.23

preferences:
58.16 ms | 400 KiB | 5 Q