3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Your ID and token $blogID = '8070105920543249955'; $authToken = 'OAuth 2.0 token here'; // The data to send to the API $postData = array( 'kind' => 'blogger#post', 'blog' => array('id' => $blogID), 'title' => 'A new post', 'content' => 'With <b>exciting</b> content...' ); // Create the context for the request $context = stream_context_create(array( 'http' => array( // http://www.php.net/manual/en/context.http.php 'method' => 'POST', 'header' => "Authorization: {$authToken}\r\n". "Content-Type: application/json\r\n", 'content' => json_encode($postData) ) )); // Send the request $response = file_get_contents('https://www.googleapis.com/blogger/v3/blogs/'.$blogID.'/posts/', FALSE, $context); // Check for errors if($response === FALSE){ die('Error'); } // Decode the response $responseData = json_decode($response, TRUE); // Print the date from the response echo $responseData['published'];

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.0110.00316.75
8.3.50.0090.01222.16
8.3.40.0030.01418.88
8.3.30.0140.00319.27
8.3.20.0040.00420.04
8.3.10.0060.01223.38
8.3.00.0000.00919.15
8.2.180.0070.01417.00
8.2.170.0070.00722.96
8.2.160.0120.00320.48
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00822.08
8.2.110.0090.00022.24
8.2.100.0060.00618.03
8.2.90.0080.00017.75
8.2.80.0030.00618.73
8.2.70.0050.00517.75
8.2.60.0000.00817.75
8.2.50.0000.00817.88
8.2.40.0040.00419.79
8.2.30.0050.00220.14
8.2.20.0050.00317.81
8.2.10.0070.00018.14
8.2.00.0000.00817.80
8.1.280.0090.00625.92
8.1.270.0110.00422.18
8.1.260.0000.00726.35
8.1.250.0060.00328.09
8.1.240.0030.00724.02
8.1.230.0080.00419.01
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.01117.38
8.1.190.0050.00317.35
8.1.180.0050.00518.10
8.1.170.0000.00717.63
8.1.160.0040.00422.02
8.1.150.0000.00818.61
8.1.140.0080.00017.39
8.1.130.0000.00717.76
8.1.120.0000.00717.41
8.1.110.0070.00317.50
8.1.100.0000.00717.52
8.1.90.0040.00417.45
8.1.80.0000.00817.37
8.1.70.0030.00317.43
8.1.60.0030.00517.52
8.1.50.0040.00417.50
8.1.40.0030.00517.50
8.1.30.0040.00417.69
8.1.20.0040.00417.68
8.1.10.0040.00417.55
8.1.00.0000.00817.41
8.0.300.0070.00018.77
8.0.290.0030.00616.75
8.0.280.0000.00718.44
8.0.270.0020.00517.40
8.0.260.0030.00317.35
8.0.250.0070.00017.12
8.0.240.0030.00317.15
8.0.230.0070.00016.94
8.0.220.0030.00317.09
8.0.210.0070.00017.03
8.0.200.0070.00016.96
8.0.190.0040.00417.07
8.0.180.0000.00816.98
8.0.170.0040.00416.96
8.0.160.0040.00417.09
8.0.150.0080.00016.97
8.0.140.0000.00917.00
8.0.130.0030.00313.39
8.0.120.0050.00317.07
8.0.110.0040.00417.08
8.0.100.0000.01016.98
8.0.90.0000.00716.86
8.0.80.0120.00917.00
8.0.70.0020.00517.15
8.0.60.0000.00817.15
8.0.50.0040.00416.91
8.0.30.0110.00817.06
8.0.20.0100.00817.40
8.0.10.0080.00016.93
8.0.00.0090.01016.67
7.4.330.0000.00515.14
7.4.320.0030.00316.64
7.4.300.0090.00016.56
7.4.290.0000.00816.66
7.4.280.0030.00716.64
7.4.270.0050.00316.45
7.4.260.0070.00016.61
7.4.250.0000.00816.49
7.4.240.0020.00516.51
7.4.230.0000.00716.62
7.4.220.0120.00616.61
7.4.210.0070.01216.56
7.4.200.0000.00816.34
7.4.190.0040.00416.58
7.4.160.0100.00716.61
7.4.150.0040.01717.40
7.4.140.0090.00817.86
7.4.130.0120.00916.53
7.4.120.0120.01016.56
7.4.110.0100.00716.55
7.4.100.0100.01016.55
7.4.90.0130.00516.55
7.4.80.0040.01319.39
7.4.70.0060.01216.74
7.4.60.0040.01216.54
7.4.50.0050.00316.61
7.4.40.0090.01616.53
7.4.30.0000.01716.69
7.4.00.0070.01114.95
7.3.330.0050.00013.39
7.3.320.0000.00513.37
7.3.310.0030.00316.46
7.3.300.0030.00316.39
7.3.290.0090.00616.46
7.3.280.0060.01016.50
7.3.270.0170.00717.40
7.3.260.0170.00716.33
7.3.250.0090.00716.51
7.3.240.0070.01016.43
7.3.230.0030.01316.59
7.3.210.0100.00716.39
7.3.200.0120.01219.39
7.3.190.0110.00716.57
7.3.180.0120.00416.45
7.3.170.0120.00716.57
7.3.160.0090.00616.40
7.3.120.0090.00614.91
7.2.330.0060.01216.66
7.2.320.0070.01516.69
7.2.310.0150.00416.84
7.2.300.0110.00716.51
7.2.290.0060.00916.88
7.2.60.0200.00017.12
7.1.200.0000.01615.77
7.1.100.0250.00016.79
7.1.70.0040.01117.36
7.1.60.0080.01119.46
7.1.50.0130.00417.60
7.1.00.0030.07722.65
7.0.200.0040.00417.09
7.0.140.0000.08022.62
7.0.90.0070.07720.39
7.0.80.0000.08320.27
7.0.70.0070.03720.30
7.0.60.0070.08320.43
7.0.50.0200.04720.61
7.0.40.0030.04320.47
7.0.30.0030.04320.55
7.0.20.0000.04720.29
7.0.10.0100.03720.30
7.0.00.0030.06020.52
5.6.280.0030.07321.33
5.6.240.0000.04721.17
5.6.230.0030.04320.95
5.6.220.0070.03721.02
5.6.210.0000.04021.04
5.6.200.0070.04021.59
5.6.190.0070.04321.35
5.6.180.0100.03721.53
5.6.170.0270.02021.28
5.6.160.0130.03321.25
5.6.150.0030.05721.23
5.6.140.0130.03721.58
5.6.130.0070.04021.37
5.6.120.0030.04321.47
5.6.110.0000.04721.49
5.6.100.0000.06021.43
5.6.90.0170.03021.43
5.6.80.0170.02720.72
5.6.70.0100.07320.85
5.6.60.0070.07020.86
5.6.50.0200.06320.69
5.6.40.0200.06720.80
5.6.30.0070.07720.73
5.6.20.0000.04720.85
5.6.10.0000.07320.80
5.6.00.0030.04320.71
5.5.380.0030.04720.98
5.5.370.0000.04720.84
5.5.360.0030.04020.64
5.5.350.0100.08320.79
5.5.340.0030.04721.15
5.5.330.0000.04021.21
5.5.320.0070.04721.19
5.5.310.0000.04321.33
5.5.300.0030.05321.18
5.5.290.0070.03721.15
5.5.280.0100.03721.15
5.5.270.0030.04321.09
5.5.260.0070.04021.08
5.5.250.0000.04321.10
5.5.240.0070.04020.56
5.5.230.0130.07020.68
5.5.220.0030.09020.53
5.5.210.0070.08020.63
5.5.200.0100.07020.38
5.5.190.0130.07720.53
5.5.180.0100.04320.45
5.5.160.0000.04320.50
5.5.150.0130.06720.53
5.5.140.0130.06720.64
5.5.130.0100.05320.68
5.5.120.0030.04320.68
5.5.110.0030.05320.52
5.5.100.0100.07020.31
5.5.90.0100.07720.57
5.5.80.0070.07720.30
5.5.70.0130.06320.34
5.5.60.0170.07320.44
5.5.50.0070.06720.47
5.5.40.0100.04320.50
5.5.30.0100.04720.52
5.5.20.0100.06720.32
5.5.10.0070.05020.33
5.5.00.0030.04020.29
5.4.450.0030.04019.75
5.4.440.0030.04019.81
5.4.430.0070.04319.65
5.4.420.0030.05319.61
5.4.410.0030.04019.69
5.4.400.0170.03319.40
5.4.390.0070.07319.37
5.4.380.0100.07019.35
5.4.370.0000.07719.48
5.4.360.0070.05719.49
5.4.350.0000.05719.49
5.4.340.0130.07019.48
5.4.320.0130.06319.49
5.4.310.0130.06719.30
5.4.300.0130.07019.42
5.4.290.0000.07319.26
5.4.280.0030.05319.59
5.4.270.0070.03719.53
5.4.260.0130.06719.56
5.4.250.0030.06319.29
5.4.240.0100.06719.59
5.4.230.0000.08019.39
5.4.220.0200.06719.59
5.4.210.0030.04719.38
5.4.200.0030.04719.47
5.4.190.0070.03719.50
5.4.180.0030.04719.29
5.4.170.0030.04319.28
5.4.160.0100.03319.35
5.4.150.0070.07719.46
5.4.140.0070.06016.32
5.4.130.0000.05716.24
5.4.120.0030.05016.01
5.4.110.0030.07716.21
5.4.100.0070.03716.26
5.4.90.0000.04016.45
5.4.80.0070.07016.31
5.4.70.0000.04016.42
5.4.60.0030.06316.30
5.4.50.0030.03716.28
5.4.40.0030.08016.26
5.4.30.0100.07016.37
5.4.20.0170.04716.38
5.4.10.0070.06716.28
5.4.00.0070.06715.73
5.3.290.0130.05714.65
5.3.280.0130.07014.58
5.3.270.0130.07014.54
5.3.260.0070.03714.57
5.3.250.0100.07314.48
5.3.240.0030.04014.60
5.3.230.0170.07014.59
5.3.220.0130.03314.55
5.3.210.0070.07714.55
5.3.200.0000.04714.56
5.3.190.0130.03014.48
5.3.180.0230.04014.48
5.3.170.0070.04314.52
5.3.160.0070.05014.42
5.3.150.0130.07014.57
5.3.140.0030.04714.42
5.3.130.0070.05314.41
5.3.120.0030.08314.54
5.3.110.0000.08014.51
5.3.100.0130.07013.91
5.3.90.0100.07313.88
5.3.80.0030.07314.00
5.3.70.0130.03313.99
5.3.60.0000.04014.00
5.3.50.0100.05013.88
5.3.40.0100.06313.91
5.3.30.0070.04313.87
5.3.20.0000.07713.55
5.3.10.0070.07313.67
5.3.00.0000.08013.49
5.2.170.0070.04311.21
5.2.160.0100.06011.06
5.2.150.0000.04711.00
5.2.140.0030.04311.14
5.2.130.0070.05711.03
5.2.120.0070.06011.13
5.2.110.0000.05011.17
5.2.100.0100.04711.09
5.2.90.0030.06010.97
5.2.80.0100.05711.08
5.2.70.0070.05310.89
5.2.60.0100.06311.04
5.2.50.0000.06711.02
5.2.40.0100.04311.00
5.2.30.0070.06011.02
5.2.20.0070.03010.73
5.2.10.0000.05010.60
5.2.00.0070.05710.54
5.1.60.0000.03310.07
5.1.50.0070.05010.03
5.1.40.0030.05710.02
5.1.30.0100.04710.35
5.1.20.0030.05710.39
5.1.10.0030.04710.08
5.1.00.0000.05310.07
5.0.50.0100.0278.53
5.0.40.0000.0408.42
5.0.30.0000.0538.27
5.0.20.0030.0478.19
5.0.10.0000.0508.26
5.0.00.0000.0638.23
4.4.90.0000.0377.47
4.4.80.0000.0377.47
4.4.70.0030.0377.47
4.4.60.0070.0307.47
4.4.50.0030.0337.47
4.4.40.0030.0507.47
4.4.30.0000.0377.47
4.4.20.0000.0377.47
4.4.10.0070.0337.47
4.4.00.0000.0577.47
4.3.110.0070.0337.47
4.3.100.0070.0337.47
4.3.90.0070.0277.47
4.3.80.0030.0537.47
4.3.70.0070.0307.47
4.3.60.0000.0337.47
4.3.50.0070.0237.47
4.3.40.0070.0437.47
4.3.30.0000.0237.47
4.3.20.0000.0277.47
4.3.10.0000.0407.47
4.3.00.0000.0337.47

preferences:
46.68 ms | 401 KiB | 5 Q