3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'triathlon.evenementsapq.ca/espresso-api/v1/authenticate?username=evenements&password=!Poumon123'; $data = array('key1' => 'value1', 'key2' => 'value2'); // use key 'http' even if you send the request to https://... $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', ), ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); var_dump($result);

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.00918.29
8.3.50.0100.00822.11
8.3.40.0090.00618.76
8.3.30.0150.00018.92
8.3.20.0070.00020.34
8.3.10.0030.00622.10
8.3.00.0070.00022.45
8.2.180.0090.00616.88
8.2.170.0090.00622.96
8.2.160.0110.00419.04
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0090.00019.36
8.2.110.0090.00022.25
8.2.100.0090.00417.75
8.2.90.0000.00819.09
8.2.80.0040.00417.97
8.2.70.0040.00417.37
8.2.60.0000.00817.91
8.2.50.0050.00518.07
8.2.40.0060.00317.95
8.2.30.0000.00817.89
8.2.20.0000.00717.66
8.2.10.0050.00317.61
8.2.00.0040.00417.69
8.1.280.0000.01425.92
8.1.270.0050.00322.14
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00622.32
8.1.230.0120.00020.91
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0040.00417.41
8.1.180.0040.00418.66
8.1.170.0080.00018.45
8.1.160.0040.00422.16
8.1.150.0070.00018.60
8.1.140.0000.00917.40
8.1.130.0070.00017.84
8.1.120.0070.00017.46
8.1.110.0000.00717.48
8.1.100.0070.00017.31
8.1.90.0000.00717.29
8.1.80.0030.00417.46
8.1.70.0000.00817.30
8.1.60.0060.00317.57
8.1.50.0040.00417.44
8.1.40.0040.00417.38
8.1.30.0000.00817.58
8.1.20.0050.00317.64
8.1.10.0070.00017.38
8.1.00.0000.00817.26
8.0.300.0060.00318.77
8.0.290.0000.00816.75
8.0.280.0030.00318.46
8.0.270.0030.00517.19
8.0.260.0040.00416.77
8.0.250.0030.00317.01
8.0.240.0050.00317.08
8.0.230.0030.00317.04
8.0.220.0070.00016.91
8.0.210.0030.00316.92
8.0.200.0000.00816.92
8.0.190.0000.00716.92
8.0.180.0000.00716.93
8.0.170.0000.00716.85
8.0.160.0050.00316.94
8.0.150.0040.00416.90
8.0.140.0040.00416.93
8.0.130.0030.00313.37
8.0.120.0080.00016.82
8.0.110.0020.00516.84
8.0.100.0000.00816.84
8.0.90.0070.00016.97
8.0.80.0060.00916.93
8.0.70.0000.00717.00
8.0.60.0040.00416.77
8.0.50.0030.00517.08
8.0.30.0160.00717.04
8.0.20.0150.01217.40
8.0.10.0000.00716.84
8.0.00.0120.00716.71
7.4.330.0000.00515.00
7.4.320.0030.00316.55
7.4.300.0000.00616.42
7.4.290.0030.00316.46
7.4.280.0030.00316.46
7.4.270.0050.00216.48
7.4.260.0000.00716.50
7.4.250.0050.00316.53
7.4.240.0040.00316.49
7.4.230.0000.00716.36
7.4.220.0070.01116.61
7.4.210.0090.00816.45
7.4.200.0000.00716.66
7.4.190.0040.00416.70
7.4.160.0130.00316.44
7.4.150.0130.01017.40
7.4.140.0080.00917.86
7.4.130.0070.01016.46
7.4.120.0150.00316.44
7.4.110.0070.01016.32
7.4.100.0120.00616.55
7.4.90.0070.01116.50
7.4.80.0120.00919.39
7.4.70.0070.01016.27
7.4.60.0100.00616.57
7.4.50.0050.00016.22
7.4.40.0070.00722.77
7.4.30.0030.01416.34
7.4.00.0090.00614.87
7.3.330.0050.00013.13
7.3.320.0000.00513.11
7.3.310.0090.00016.11
7.3.300.0030.00316.27
7.3.290.0080.00816.33
7.3.280.0060.01016.32
7.3.270.0180.00017.40
7.3.260.0040.01416.73
7.3.250.0090.00816.35
7.3.240.0160.01016.35
7.3.230.0190.00016.39
7.3.210.0130.00616.23
7.3.200.0130.00319.39
7.3.190.0150.00716.20
7.3.180.0070.01116.35
7.3.170.0100.00816.28
7.3.160.0090.00616.46
7.3.120.0070.00714.70
7.2.330.0030.01316.62
7.2.320.0110.00816.68
7.2.310.0130.01016.21
7.2.300.0080.00816.68
7.2.290.0100.00616.32
7.1.70.0000.00816.96
7.1.60.0000.01619.82
7.1.50.0060.01916.98
7.1.00.0000.08022.36
7.0.200.0110.00416.80
7.0.140.0170.06321.96
7.0.60.0170.07319.90
7.0.50.0030.04717.88
7.0.40.0130.06320.39
7.0.30.0330.08020.30
7.0.20.0270.04020.09
7.0.10.0330.07720.18
7.0.00.0100.08020.16
5.6.280.0030.07321.09
5.6.210.0070.03720.71
5.6.200.0130.08318.16
5.6.190.0100.08020.27
5.6.180.3500.04320.43
5.6.170.0270.07320.53
5.6.160.0100.08720.38
5.6.150.0070.04018.11
5.6.140.0130.05718.14
5.6.130.0030.08318.14
5.6.120.0030.09021.04
5.6.110.0030.05020.98
5.6.100.0070.04320.96
5.6.90.0100.09020.96
5.6.80.0000.08320.52
5.6.70.0270.08320.34
5.5.350.0030.08320.32
5.5.340.0030.04317.97
5.5.330.0070.05020.43
5.5.320.0330.06020.24
5.5.310.0300.06320.29
5.5.300.0000.08317.93
5.5.290.0100.07317.91
5.5.280.0070.04020.67
5.5.270.0100.08020.67
5.5.260.0300.07020.88
5.5.250.0000.04320.57
5.5.240.0030.08320.21
5.4.450.0200.05019.14
5.4.440.0170.05019.45
5.4.430.0300.04319.14
5.4.420.0270.08019.54
5.4.410.0370.06019.29
5.4.400.0300.06719.25
5.4.390.0430.03719.08
5.4.380.0230.05019.16
5.4.370.0300.07019.16
5.4.360.0230.04719.13
5.4.350.0200.04718.79
5.4.340.0230.06319.10
5.4.320.0200.04019.16
5.4.310.0230.06019.14
5.4.300.0270.04019.13
5.4.290.0270.04319.08
5.4.280.0270.03318.88
5.4.270.0270.04319.10
5.4.260.0270.03718.79
5.4.250.0300.06719.09
5.4.240.0270.05718.92
5.4.230.0230.04719.24
5.4.220.0230.06719.08
5.4.210.0300.06319.07
5.4.200.0230.07319.12
5.4.190.0330.07019.23
5.4.180.0170.05019.14
5.4.170.0370.05719.07
5.4.160.0330.07019.07
5.4.150.0270.04719.14
5.4.140.0230.04316.43
5.4.130.0200.04016.28
5.4.120.0330.06016.55
5.4.110.0270.05716.44
5.4.100.0230.05716.39
5.4.90.0270.06316.43
5.4.80.0300.04316.21
5.4.70.0370.06316.37
5.4.60.0300.06716.36
5.4.50.0230.06716.03
5.4.40.0370.06016.46
5.4.30.0230.07016.38
5.4.20.0370.06016.21
5.4.10.0130.05316.23
5.4.00.0330.06315.71
5.3.290.0370.06314.64
5.3.280.0300.07014.46
5.3.270.0230.07314.71
5.3.260.0200.04014.46
5.3.250.0370.06314.45
5.3.240.0230.07314.59
5.3.230.0200.04314.50
5.3.220.0330.03014.45
5.3.210.0330.07014.50
5.3.200.0300.05314.55
5.3.190.0270.06014.45
5.3.180.0270.06014.50
5.3.170.0270.04014.45
5.3.160.0370.06314.45
5.3.150.0330.06314.45
5.3.140.0270.04314.46
5.3.130.0330.05314.45
5.3.120.0270.06714.45
5.3.110.0230.06314.49
5.3.100.0370.06314.45
5.3.90.0300.04014.45
5.3.80.0200.05014.45
5.3.70.0230.04314.45
5.3.60.0200.06314.45
5.3.50.0230.05314.45
5.3.40.0230.03714.45
5.3.30.0370.06714.45
5.3.20.0300.03714.45
5.3.10.0270.06014.45
5.3.00.0300.04714.45
5.2.170.0230.05714.45
5.2.160.0170.04314.45
5.2.150.0200.04014.45
5.2.140.0230.03714.45
5.2.130.0200.04714.45
5.2.120.0270.04714.45
5.2.110.0270.05014.45
5.2.100.0270.05014.45
5.2.90.0270.04714.45
5.2.80.0270.04014.45
5.2.70.0200.06014.45
5.2.60.0270.02714.45
5.2.50.0230.05314.45
5.2.40.0200.06014.45
5.2.30.0170.03014.45
5.2.20.0270.05014.45
5.2.10.0130.03714.45
5.2.00.0200.06014.45
5.1.60.0170.05314.45
5.1.50.0270.04314.45
5.1.40.0130.06014.45
5.1.30.0170.04714.45
5.1.20.0170.03314.45
5.1.10.0130.03014.45
5.1.00.0200.02714.45
5.0.50.0230.03714.45
5.0.40.0130.04014.45
5.0.30.0100.05714.45
5.0.20.0170.03714.45
5.0.10.0130.04314.45
5.0.00.0130.06014.45
4.4.90.0100.01314.45
4.4.80.0100.02714.45
4.4.70.0070.02014.45
4.4.60.0100.01714.45
4.4.50.0130.03014.45
4.4.40.0070.05314.45
4.4.30.0100.03314.45
4.4.20.0100.01314.45
4.4.10.0070.02314.45
4.4.00.0130.04714.45
4.3.110.0100.03314.45
4.3.100.0230.01014.45
4.3.90.0130.03014.45
4.3.80.0170.03714.45
4.3.70.0100.02314.45
4.3.60.0130.02014.45
4.3.50.0130.03014.45
4.3.40.0070.05714.45
4.3.30.0030.03314.45
4.3.20.0030.03314.45
4.3.10.0070.03314.45
4.3.00.0030.02014.45

preferences:
48.86 ms | 401 KiB | 5 Q