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.0140.00716.63
8.3.50.0100.01021.92
8.3.40.0150.00018.84
8.3.30.0070.00718.63
8.3.20.0030.00522.14
8.3.10.0050.00323.48
8.3.00.0040.00419.38
8.2.180.0110.00416.63
8.2.170.0070.00722.96
8.2.160.0070.00720.17
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0060.00317.50
8.2.120.0050.00226.35
8.2.110.0040.00420.34
8.2.100.0120.00017.72
8.2.90.0000.00819.26
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0030.00517.91
8.2.50.0040.00418.07
8.2.40.0040.00719.52
8.2.30.0090.00020.70
8.2.20.0040.00417.88
8.2.10.0040.00418.14
8.2.00.0030.00618.04
8.1.280.0130.00625.92
8.1.270.0080.00323.91
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0030.00721.75
8.1.230.0110.00020.91
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0000.00917.70
8.1.180.0060.00318.10
8.1.170.0040.00418.51
8.1.160.0000.00822.07
8.1.150.0070.00018.82
8.1.140.0000.00819.46
8.1.130.0030.00317.72
8.1.120.0040.00417.36
8.1.110.0020.00517.40
8.1.100.0040.00417.51
8.1.90.0000.00717.39
8.1.80.0050.00217.43
8.1.70.0030.00317.36
8.1.60.0040.00417.61
8.1.50.0030.00617.52
8.1.40.0040.00717.45
8.1.30.0060.00617.59
8.1.20.0050.00217.62
8.1.10.0040.00417.65
8.1.00.0040.00417.54
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0000.00718.45
8.0.270.0030.00317.21
8.0.260.0000.00717.11
8.0.250.0070.00016.96
8.0.240.0030.00317.01
8.0.230.0070.00016.95
8.0.220.0030.00516.85
8.0.210.0070.00016.80
8.0.200.0070.00016.94
8.0.190.0000.00716.95
8.0.180.0040.00416.97
8.0.170.0000.00816.88
8.0.160.0000.00816.91
8.0.150.0060.00316.84
8.0.140.0000.00716.83
8.0.130.0030.00313.35
8.0.120.0000.00716.88
8.0.110.0040.00416.85
8.0.100.0000.00716.99
8.0.90.0040.00416.83
8.0.80.0060.01016.91
8.0.70.0050.00216.80
8.0.60.0030.00516.80
8.0.50.0080.00016.76
8.0.30.0140.01016.99
8.0.20.0110.00817.40
8.0.10.0000.00717.16
8.0.00.0100.00716.81
7.4.330.0000.00516.70
7.4.320.0000.00716.49
7.4.300.0070.00016.63
7.4.290.0040.00416.63
7.4.280.0030.00316.65
7.4.270.0000.00716.63
7.4.260.0000.00616.45
7.4.250.0000.00716.61
7.4.240.0020.00516.64
7.4.230.0000.00716.65
7.4.220.0100.01316.63
7.4.210.0080.00816.62
7.4.200.0000.00816.66
7.4.160.0070.01016.67
7.4.150.0110.00617.40
7.4.140.0120.00917.86
7.4.130.0070.01016.60
7.4.120.0070.01016.54
7.4.110.0130.00916.68
7.4.100.0180.00016.42
7.4.90.0140.00416.69
7.4.80.0030.01519.39
7.4.70.0110.00616.59
7.4.60.0030.01316.62
7.4.50.0110.00716.66
7.4.40.0130.01016.63
7.4.30.0100.01016.62
7.4.00.0030.01515.04
7.3.330.0040.00413.10
7.3.320.0050.00013.29
7.3.310.0070.00016.31
7.3.300.0000.00716.33
7.3.290.0000.00716.39
7.3.280.0100.00716.39
7.3.270.0120.00617.40
7.3.260.0130.00916.61
7.3.250.0100.01016.54
7.3.240.0090.01116.38
7.3.230.0100.00716.39
7.3.210.0070.01016.35
7.3.200.0190.00316.47
7.3.190.0120.00916.36
7.3.180.0080.00816.30
7.3.170.0030.01316.70
7.3.160.0120.00316.49
7.3.120.0040.01515.08
7.3.110.0100.01014.98
7.3.100.0040.00814.60
7.3.90.0030.00615.04
7.3.80.0060.01014.58
7.3.70.0080.00814.59
7.3.60.0000.01114.95
7.3.50.0070.00414.94
7.3.40.0060.00314.98
7.3.30.0000.01514.71
7.3.20.0100.00716.75
7.3.10.0100.00316.63
7.3.00.0070.00516.79
7.2.330.0090.00916.53
7.2.320.0070.01016.49
7.2.310.0090.00616.44
7.2.300.0090.00916.60
7.2.290.0080.00816.75
7.2.250.0030.01515.26
7.2.240.0160.00615.05
7.2.230.0070.01014.95
7.2.220.0070.00714.71
7.2.210.0100.00715.24
7.2.200.0060.01015.09
7.2.190.0040.01115.16
7.2.180.0090.00615.11
7.2.170.0080.00415.03
7.2.130.0070.00716.80
7.2.120.0060.00616.84
7.2.110.0040.01116.99
7.2.100.0120.00016.93
7.2.90.0110.00416.87
7.2.80.0050.00516.84
7.2.70.0070.00717.07
7.2.60.0080.00716.81
7.2.50.0030.00916.89
7.2.40.0120.00316.99
7.2.30.0080.00816.67
7.2.20.0060.01316.96
7.2.10.0030.00916.93
7.2.00.0110.00818.10
7.1.330.0080.00515.94
7.1.320.0130.00315.55
7.1.310.0130.00315.97
7.1.300.0030.01015.79
7.1.290.0030.01015.82
7.1.280.0030.01015.73
7.1.270.0100.00015.52
7.1.260.0090.00015.84
7.1.250.0030.00715.98
7.1.200.0320.00815.62
7.1.100.0040.00718.17
7.1.70.0070.00017.18
7.1.60.0100.01619.36
7.1.50.0070.01516.96
7.1.00.0030.07722.48
7.0.200.0070.00316.94
7.0.100.0070.04320.00
7.0.90.0200.04020.01
7.0.80.0100.03019.95
7.0.70.0130.03020.04
7.0.60.0170.04319.90
7.0.50.0100.04020.37
7.0.40.0000.05720.17
7.0.30.0070.05020.00
7.0.20.0000.07020.18
7.0.10.0100.06720.18
7.0.00.0030.08320.08
5.6.280.0030.03020.87
5.6.250.0030.03720.64
5.6.240.0070.05020.50
5.6.230.0000.04320.52
5.6.220.0030.04020.54
5.6.210.0070.03320.58
5.6.200.0000.04321.15
5.6.190.0070.04320.96
5.6.180.0000.04721.08
5.6.170.0070.04020.95
5.6.160.0100.07021.09
5.6.150.0000.05321.05
5.6.140.0100.03720.95
5.6.130.0030.04721.04
5.6.120.0070.04721.02
5.6.110.0030.04321.01
5.6.100.0170.04320.96
5.6.90.0000.07720.99
5.6.80.0100.05020.43
5.6.70.0100.07720.30
5.6.60.0030.05720.51
5.6.50.0030.04720.50
5.6.40.0100.04320.48
5.6.30.0070.04020.45
5.6.20.0100.07720.41
5.6.10.0130.05720.41
5.6.00.0100.04320.39
5.5.380.0000.04020.35
5.5.370.0100.03720.46
5.5.360.0030.04320.45
5.5.350.0070.04020.43
5.5.340.0100.03720.84
5.5.330.0070.04320.90
5.5.320.0100.03320.86
5.5.310.0000.04020.77
5.5.300.0100.04020.79
5.5.290.0070.07320.81
5.5.280.0100.08320.88
5.5.270.0030.07320.92
5.5.260.0070.04020.86
5.5.250.0030.04320.62
5.5.240.0100.04020.03
5.5.230.0030.07320.30
5.5.220.0070.04020.16
5.5.210.0030.09020.30
5.5.200.0030.04020.13
5.5.190.0130.07020.14
5.5.180.0130.05720.11
5.5.160.0030.08020.27
5.5.150.0030.05320.27
5.5.140.0100.04720.09
5.5.130.0070.04020.19
5.5.120.0000.06720.26
5.5.110.0030.04320.21
5.5.100.0100.03320.14
5.5.90.0100.07020.17
5.5.80.0000.07720.14
5.5.70.0000.07020.10
5.5.60.0130.03720.09
5.5.50.0100.03020.16
5.5.40.0030.06020.09
5.5.30.0100.07020.14
5.5.20.0000.06720.14
5.5.10.0030.07720.14
5.5.00.0030.08020.11

preferences:
78.24 ms | 401 KiB | 5 Q