3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = 'UU3dESJmRgwl8j3X80c9wTwg'; // YouTube API URL retrieves the fields we want in JSON format so that it's super easy to work with $api_url = 'https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=%s&key=AIzaSyAMUb-pd1gAIeNmu3nUrarg6_397QJQXEo'; // Get the videos for our user with 'wp_remote_get()' $response = http_get( sprintf($api_url, $username) , array("timeout"=>1), $info ); echo(response); echo($info); // Let's decode what we retrieved so that we can store it efficiently $item_data = json_decode( $info ); // If our info isn't in an array then these next steps won't work-- return false if ( !is_array( $item_data ) ) { return false; } // Let's sort through everything we've got. We'll keep the stuff we need and drop the rest from the array. $item_data = $item_data['feed']['entry']; foreach(array_keys($item_data) as $key) { echo($item_data[$key]['title']['$t']); }

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.0140.00016.48
8.3.50.0130.00721.10
8.3.40.0070.01418.48
8.3.30.0090.00918.85
8.3.20.0000.01420.37
8.3.10.0050.00221.93
8.3.00.0070.00321.76
8.2.180.0130.00318.41
8.2.170.0190.00322.96
8.2.160.0100.00319.37
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00421.08
8.2.120.0070.00026.35
8.2.110.0030.00620.83
8.2.100.0070.00417.90
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0030.00917.93
8.2.50.0080.00418.07
8.2.40.0030.00620.38
8.2.30.0040.00419.49
8.2.20.0080.00017.56
8.2.10.0060.00317.94
8.2.00.0040.00418.11
8.1.280.0100.00725.92
8.1.270.0150.00422.19
8.1.260.0000.00828.09
8.1.250.0000.00728.09
8.1.240.0030.00922.42
8.1.230.0070.00419.22
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0030.00717.22
8.1.190.0000.00817.22
8.1.180.0030.00618.10
8.1.170.0040.00418.59
8.1.160.0030.00520.72
8.1.150.0040.00420.52
8.1.140.0040.00419.48
8.1.130.0030.00317.55
8.1.120.0050.00217.42
8.1.110.0050.00217.31
8.1.100.0040.00417.30
8.1.90.0050.00317.38
8.1.80.0070.00017.29
8.1.70.0030.00317.42
8.1.60.0090.00317.58
8.1.50.0110.00017.45
8.1.40.0050.00317.45
8.1.30.0000.00817.70
8.1.20.0040.00417.63
8.1.10.0070.00017.62
8.1.00.0040.00417.40
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0070.00018.39
8.0.270.0000.00717.14
8.0.260.0030.00317.14
8.0.250.0030.00316.99
8.0.240.0000.00716.96
8.0.230.0030.00316.93
8.0.220.0080.00016.79
8.0.210.0060.00316.81
8.0.200.0030.00317.00
8.0.190.0040.00416.95
8.0.180.0070.00016.90
8.0.170.0000.00816.93
8.0.160.0000.00716.91
8.0.150.0040.00416.74
8.0.140.0000.00716.74
8.0.130.0000.00513.35
8.0.120.0040.00416.91
8.0.110.0000.00716.81
8.0.100.0050.00316.69
8.0.90.0040.00416.89
8.0.80.0070.01116.89
8.0.70.0040.00416.83
8.0.60.0040.00416.75
8.0.50.0040.00416.89
8.0.30.0090.00616.98
8.0.20.0100.01017.40
8.0.10.0030.00617.09
8.0.00.0120.00616.79
7.4.330.0020.00216.70
7.4.320.0000.00616.55
7.4.300.0030.00516.52
7.4.290.0000.00816.59
7.4.280.0000.00716.61
7.4.270.0070.00016.58
7.4.260.0070.00416.56
7.4.250.0000.00816.57
7.4.240.0030.00316.44
7.4.230.0000.00716.45
7.4.220.0060.01216.58
7.4.210.0030.01116.58
7.4.200.0050.00216.71
7.4.160.0130.00916.54
7.4.150.0110.01117.40
7.4.140.0080.01517.86
7.4.130.0140.00316.64
7.4.120.0090.00716.52
7.4.110.0140.00716.68
7.4.100.0100.00916.52
7.4.90.0030.01316.63
7.4.80.0130.00919.39
7.4.70.0100.01316.51
7.4.60.0060.01016.45
7.4.50.0100.00316.36
7.4.40.0130.00316.61
7.4.30.0110.00816.53
7.4.00.0050.01414.88
7.3.330.0020.00213.00
7.3.320.0050.00013.11
7.3.310.0030.00516.27
7.3.300.0030.00316.37
7.3.290.0030.00316.13
7.3.280.0070.00916.25
7.3.270.0130.00617.40
7.3.260.0100.00716.42
7.3.250.0100.00616.44
7.3.240.0090.00816.28
7.3.230.0130.00516.49
7.3.210.0120.00616.29
7.3.200.0130.00319.39
7.3.190.0140.00916.36
7.3.180.0120.00316.33
7.3.170.0110.01116.30
7.3.160.0090.00916.38
7.3.120.0070.01114.95
7.3.110.0090.01014.41
7.3.100.0030.01014.61
7.3.90.0070.01114.77
7.3.80.0140.00014.90
7.3.70.0100.00314.86
7.3.60.0060.00614.57
7.3.50.0150.00014.83
7.3.40.0040.01214.54
7.3.30.0080.00814.66
7.3.20.0070.01116.33
7.3.10.0050.01116.56
7.3.00.0050.01016.46
7.2.330.0090.00916.51
7.2.320.0100.00716.29
7.2.310.0130.01016.33
7.2.300.0120.00416.64
7.2.290.0060.00916.45
7.2.250.0080.01114.64
7.2.240.0160.00314.96
7.2.230.0070.00714.93
7.2.220.0110.00714.88
7.2.210.0070.01014.64
7.2.200.0060.00614.96
7.2.190.0080.00614.87
7.2.180.0060.00914.80
7.2.170.0030.00914.61
7.2.130.0070.01016.64
7.2.120.0000.01416.77
7.2.110.0070.00716.46
7.2.100.0060.00916.77
7.2.90.0090.00916.70
7.2.80.0090.00616.59
7.2.70.0000.01216.91
7.2.60.0050.00716.72
7.2.50.0000.01716.88
7.2.40.0070.00416.86
7.2.30.0030.00916.82
7.2.20.0040.01116.65
7.2.10.0120.00016.68
7.2.00.0020.01518.07
7.1.330.0030.01015.69
7.1.320.0030.00615.70
7.1.310.0090.00615.72
7.1.300.0030.00715.52
7.1.290.0030.01515.50
7.1.280.0090.00615.70
7.1.270.0000.01715.65
7.1.260.0030.01015.68
7.1.250.0030.00915.63
7.1.240.0040.00715.51
7.1.230.0090.00615.57
7.1.220.0060.00615.62
7.1.210.0090.00615.46
7.1.200.0040.00915.51
7.1.190.0060.00915.67
7.1.180.0040.01115.66
7.1.170.0030.01315.60
7.1.160.0040.00815.36
7.1.150.0100.00015.21
7.1.140.0040.00715.70
7.1.130.0000.00915.67
7.1.120.0110.00015.23
7.1.110.0090.00315.64
7.1.100.0050.00916.93
7.1.90.0070.00715.59
7.1.80.0030.00615.52
7.1.70.0020.00916.29
7.1.60.0090.01017.46
7.1.50.0070.00816.34
7.1.40.0060.00315.61
7.1.30.0070.00715.63
7.1.20.0100.00315.31
7.1.10.0000.01115.35
7.1.00.0060.04118.92
7.0.330.0130.00015.39
7.0.320.0090.00315.41
7.0.310.0070.00715.18
7.0.300.0110.00315.27
7.0.290.0130.00015.29
7.0.280.0090.00315.22
7.0.270.0070.00715.01
7.0.260.0060.00615.36
7.0.250.0030.00715.03
7.0.240.0040.01115.25
7.0.230.0030.01015.23
7.0.220.0100.00615.43
7.0.210.0090.00015.29
7.0.200.0420.00614.85
7.0.190.0000.01115.34
7.0.180.0120.00015.27
7.0.170.0000.01215.33
7.0.160.0080.00015.02
7.0.150.0030.01015.38
7.0.140.0040.01115.40
7.0.130.0040.00414.93
7.0.120.0090.00615.20
7.0.110.0100.00015.34
7.0.100.0000.01215.36
7.0.90.0070.00315.07
7.0.80.0100.00315.27
7.0.70.0090.00315.32
7.0.60.0160.04018.53
7.0.50.0060.04416.60
7.0.40.0080.04016.74
7.0.30.0120.02716.78
7.0.20.0100.02516.65
7.0.10.0050.02916.79
7.0.00.0020.04916.76
5.6.380.0000.01513.95
5.6.370.0030.00713.95
5.6.360.0030.01014.16
5.6.350.0000.01013.89
5.6.340.0040.00814.26
5.6.330.0070.00714.27
5.6.320.0030.00814.34
5.6.310.0060.00914.23
5.6.300.0070.00413.97
5.6.290.0070.00714.01
5.6.280.0050.02017.52
5.6.270.0040.01114.48
5.6.260.0060.00614.13
5.6.250.0120.00314.26
5.6.240.0000.01513.93
5.6.230.0060.00614.14
5.6.220.0060.00614.23
5.6.210.0100.03917.46
5.6.200.0030.03716.08
5.6.190.0080.02117.25
5.6.180.0150.04217.22
5.6.170.0220.03217.29
5.6.160.0000.03617.29
5.6.150.0100.03315.95
5.6.140.0020.02416.15
5.6.130.0080.01916.22
5.6.120.0030.03417.49
5.6.110.0110.03717.52
5.6.100.0030.05217.73
5.6.90.0080.02917.59
5.6.80.0080.04017.21
5.6.70.0030.00714.25
5.6.60.0120.00313.90
5.6.50.0040.00814.21
5.6.40.0030.01313.98
5.6.30.0030.00914.15
5.6.20.0040.00414.04
5.6.10.0000.01314.01
5.6.00.0000.01313.72
5.5.380.0000.00610.49
5.5.370.0060.00310.81
5.5.360.0060.00610.99
5.5.350.0130.02515.62
5.5.340.0050.04314.19
5.5.330.0050.04615.43
5.5.320.0180.02215.54
5.5.310.0150.03915.62
5.5.300.0080.03814.53
5.5.290.0080.04314.48
5.5.280.0050.04715.80
5.5.270.0060.02015.78
5.5.260.0030.02415.89
5.5.250.0140.04015.57
5.5.240.0190.03515.34
5.5.230.0030.00610.77
5.5.220.0000.01010.82
5.5.210.0060.00610.64
5.5.200.0000.00810.60
5.5.190.0000.01010.86
5.5.180.0040.00810.96
5.5.170.0090.00311.01
5.5.160.0000.00910.71
5.5.150.0050.00010.70
5.5.140.0060.00610.92
5.5.130.0090.00310.61
5.5.120.0000.00510.67
5.5.110.0000.01010.52
5.5.100.0030.01010.91
5.5.90.0040.00410.65
5.5.80.0050.00510.81
5.5.70.0060.00610.66
5.5.60.0030.00310.92
5.5.50.0090.00310.70
5.5.40.0060.00610.77
5.5.30.0030.00710.65
5.5.20.0030.00610.93
5.5.10.0040.00810.76
5.5.00.0070.00310.82

preferences:
50.42 ms | 401 KiB | 5 Q