3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Initialisation des variables $clientId = "14254"; $consumerKey = "MTQyNTQ6NDQw"; $consumerSecret = "568a3e7ba52943b78587f2e86d9a57b8"; // Header de la requête $headers = array( "grant_type" => "password", "client_id" => $clientId, "username" => $consumerKey, "password" => $consumerSecret, "content_type" => "application/x-www-form-urlencoded" ); $postText = http_build_query($headers); // URL d'appel $url = "https://api.ccmp.eu/services/authorization/oauth2/token"; try { // Initialisation de la session CURL $curl = curl_init(); // Appel de l'URL en paramètre curl_setopt($curl, CURLOPT_URL, $url); //HTTP POST request curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $postText); //set SSL curl_setopt($curl, CURLOPT_SSLVERSION, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); // Demande le résultat en chaîne de caractères curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); // Execution de la session CURL $result = curl_exec($curl); // Récupère le code de la réponse retournée $code = curl_getinfo($curl, CURLINFO_HTTP_CODE); // Fermeture de la session CURL curl_close($curl); // Création d'un tableau contenant le code de retour et le résultat de la requête $res = array_merge(array('code' => $code), array('result' => json_decode($result, true))); } catch ( Exception $e ) { throw new Exception("Error during the call. Here the message: " . $e -> Message); } print_r($res);

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.0130.00716.75
8.3.50.0170.00321.99
8.3.40.0120.00318.79
8.3.30.0090.00618.85
8.3.20.0040.00420.29
8.3.10.0040.01123.61
8.3.00.0060.00319.38
8.2.180.0110.01116.88
8.2.170.0110.00422.96
8.2.160.0060.00920.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00517.63
8.2.120.0070.00026.35
8.2.110.0070.00422.26
8.2.100.0090.00318.03
8.2.90.0040.00419.26
8.2.80.0030.00617.97
8.2.70.0060.00317.48
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0040.00419.46
8.2.30.0060.00320.60
8.2.20.0060.00317.84
8.2.10.0040.00417.96
8.2.00.0060.00317.97
8.1.280.0080.01225.92
8.1.270.0030.00723.83
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0090.00022.57
8.1.230.0040.00717.66
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0040.00417.82
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0040.00421.84
8.1.150.0000.00718.84
8.1.140.0050.00519.48
8.1.130.0030.00317.57
8.1.120.0000.00717.43
8.1.110.0040.00417.46
8.1.100.0040.00417.49
8.1.90.0080.00017.36
8.1.80.0050.00317.39
8.1.70.0030.00317.31
8.1.60.0030.00517.56
8.1.50.0000.00817.57
8.1.40.0070.00317.53
8.1.30.0030.00717.70
8.1.20.0060.00317.48
8.1.10.0030.00617.54
8.1.00.0040.00417.55
8.0.300.0050.00218.77
8.0.290.0040.00416.58
8.0.280.0000.00818.42
8.0.270.0030.00517.14
8.0.260.0040.00417.19
8.0.250.0040.00417.02
8.0.240.0000.00716.96
8.0.230.0030.00316.98
8.0.220.0070.00016.83
8.0.210.0050.00216.93
8.0.200.0050.00316.87
8.0.190.0030.00617.01
8.0.180.0000.00716.91
8.0.170.0070.00016.96
8.0.160.0070.00016.96
8.0.150.0040.00416.82
8.0.140.0000.00716.83
8.0.130.0030.00313.38
8.0.120.0040.00416.92
8.0.110.0030.00516.93
8.0.100.0040.00416.97
8.0.90.0000.00716.99
8.0.80.0030.01316.88
8.0.70.0040.00416.82
8.0.60.0040.00416.94
8.0.50.0040.00416.97
8.0.30.0140.00616.98
8.0.20.0100.00917.40
8.0.10.0040.00417.10
8.0.00.0090.00816.79
7.4.330.0000.00516.74
7.4.320.0030.00316.55
7.4.300.0030.00516.61
7.4.290.0000.00816.44
7.4.280.0000.00716.49
7.4.270.0060.00016.63
7.4.260.0030.00316.54
7.4.250.0050.00216.41
7.4.240.0080.00016.65
7.4.230.0000.00716.45
7.4.220.0120.00616.66
7.4.210.0040.00916.66
7.4.200.0070.00016.54
7.4.160.0090.00616.57
7.4.150.0060.01517.40
7.4.140.0070.01617.86
7.4.130.0100.01016.67
7.4.120.0100.00916.52
7.4.110.0060.01616.67
7.4.100.0140.00316.66
7.4.90.0100.00916.50
7.4.80.0100.01019.39
7.4.70.0140.00316.61
7.4.60.0070.01116.58
7.4.50.0060.00716.55
7.4.40.0040.01416.40
7.4.30.0170.00616.63
7.4.00.0110.00415.25
7.3.330.0000.00713.24
7.3.320.0000.00513.09
7.3.310.0030.00316.44
7.3.300.0030.00316.35
7.3.290.0000.00716.34
7.3.280.0120.00616.32
7.3.270.0140.01017.40
7.3.260.0170.00716.61
7.3.250.0090.01116.40
7.3.240.0140.00916.35
7.3.230.0070.01016.65
7.3.210.0060.01216.39
7.3.200.0130.00516.30
7.3.190.0110.01316.47
7.3.180.0100.00716.32
7.3.170.0060.01016.49
7.3.160.0120.00416.41
7.2.330.0140.00416.56
7.2.320.0150.00816.79
7.2.310.0050.01116.71
7.2.300.0000.01716.62
7.2.290.0090.00916.50
7.2.80.0070.00716.75
7.2.60.0120.00316.88
7.2.00.0150.00719.31
7.1.200.0030.00915.89
7.1.100.0040.00718.00
7.1.70.0040.00416.98
7.1.60.0060.01819.36
7.1.50.0100.01317.06
7.1.00.0070.06722.36
7.0.200.0050.00516.88
7.0.100.0030.05019.91
7.0.90.0200.07319.90
7.0.80.0070.07019.88
7.0.70.0330.06319.97
7.0.60.0030.07719.87
7.0.50.0100.07320.29
7.0.40.0100.08020.13
7.0.30.0100.07320.03
7.0.20.0030.06020.04
7.0.10.0030.05720.08
7.0.00.0030.06720.11
5.6.280.0000.03321.09
5.6.250.0070.08320.49
5.6.240.0100.06720.71
5.6.230.0070.08020.63
5.6.220.0100.07320.56
5.6.210.0070.04020.59
5.6.200.0030.05721.00
5.6.190.0130.05020.95
5.6.180.0130.06721.12
5.6.170.0130.07721.03
5.6.160.0100.07321.04
5.6.150.0130.07721.13
5.6.140.0130.07721.09
5.6.130.0100.06721.18
5.6.120.0130.07721.14
5.6.110.0200.07020.95
5.6.100.0170.07321.02
5.6.90.0100.08321.08
5.6.80.0000.07720.38
5.6.70.0070.07720.55
5.6.60.0100.08020.39
5.6.50.0170.05720.35
5.6.40.0030.07720.36
5.6.30.0100.07720.42
5.6.20.0100.04320.40
5.6.10.0030.08720.41
5.6.00.0030.08320.45
5.5.380.0000.06320.49
5.5.370.0030.06320.46
5.5.360.0070.06020.33
5.5.350.0100.08020.39
5.5.340.0030.09020.83
5.5.330.0100.07720.93
5.5.320.0070.05020.93
5.5.310.0130.07320.87
5.5.300.0130.07020.74
5.5.290.0170.07720.73
5.5.280.0070.08320.79
5.5.270.0070.07720.83
5.5.260.0100.06320.84
5.5.250.0000.05020.68
5.5.240.0170.06020.20
5.5.230.0230.05320.21
5.5.220.0030.08320.22
5.5.210.0100.08020.03
5.5.200.0130.06720.17
5.5.190.0070.08020.20
5.5.180.0170.04720.13
5.5.160.0030.07320.28
5.5.150.0030.06020.07
5.5.140.0270.05320.12
5.5.130.0030.08320.25
5.5.120.0070.08020.19
5.5.110.0070.06720.23
5.5.100.0000.08320.17
5.5.90.0100.07320.07
5.5.80.0100.05020.16
5.5.70.0070.08720.01
5.5.60.0070.07020.09
5.5.50.0070.07720.15
5.5.40.0100.07020.06
5.5.30.0070.05719.94
5.5.20.0170.06320.06
5.5.10.0130.07720.08
5.5.00.0130.04720.14

preferences:
59.73 ms | 401 KiB | 5 Q