3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'triathlon.com/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.0070.01418.53
8.3.50.0110.00322.05
8.3.40.0060.01018.77
8.3.30.0110.00418.92
8.3.20.0040.00420.29
8.3.10.0080.00022.09
8.3.00.0040.00422.46
8.2.180.0090.00616.88
8.2.170.0120.00322.96
8.2.160.0140.00319.21
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.51
8.2.110.0100.00020.56
8.2.100.0040.00717.71
8.2.90.0050.00319.27
8.2.80.0060.00317.97
8.2.70.0030.00617.38
8.2.60.0030.00517.93
8.2.50.0080.00018.07
8.2.40.0060.00618.00
8.2.30.0080.00019.68
8.2.20.0000.00717.48
8.2.10.0000.00817.70
8.2.00.0000.00817.74
8.1.280.0190.00325.92
8.1.270.0000.00722.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01020.99
8.1.230.0000.01117.46
8.1.220.0030.00617.74
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0040.00417.41
8.1.180.0080.00018.57
8.1.170.0040.00418.66
8.1.160.0070.00022.11
8.1.150.0040.00418.52
8.1.140.0060.00317.31
8.1.130.0030.00317.71
8.1.120.0000.00717.33
8.1.110.0040.00417.36
8.1.100.0070.00017.42
8.1.90.0000.00717.42
8.1.80.0040.00317.50
8.1.70.0040.00417.38
8.1.60.0000.00817.46
8.1.50.0040.00417.37
8.1.40.0030.00617.47
8.1.30.0030.00517.48
8.1.20.0050.00517.55
8.1.10.0040.00417.38
8.1.00.0040.00417.39
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00818.48
8.0.270.0040.00417.27
8.0.260.0030.00316.88
8.0.250.0030.00316.91
8.0.240.0050.00216.93
8.0.230.0000.00716.92
8.0.220.0050.00216.98
8.0.210.0030.00316.83
8.0.200.0070.00016.89
8.0.190.0040.00417.03
8.0.180.0000.00716.99
8.0.170.0060.00316.93
8.0.160.0000.00817.00
8.0.150.0000.00716.96
8.0.140.0040.00316.98
8.0.130.0030.00313.42
8.0.120.0040.00416.98
8.0.110.0040.00416.96
8.0.100.0080.00016.78
8.0.90.0000.00716.79
8.0.80.0100.00617.02
8.0.70.0050.00317.00
8.0.60.0000.00916.82
8.0.50.0000.00716.91
8.0.30.0110.00917.13
8.0.20.0100.00817.40
8.0.10.0030.00616.89
8.0.00.0050.01216.78
7.4.330.0050.00015.00
7.4.320.0000.00616.45
7.4.300.0000.00616.62
7.4.290.0040.00416.53
7.4.280.0000.00716.57
7.4.270.0030.00516.60
7.4.260.0070.00016.53
7.4.250.0070.00016.55
7.4.240.0060.00116.58
7.4.230.0030.00316.65
7.4.220.0030.01616.54
7.4.210.0070.00416.53
7.4.200.0040.00416.43
7.4.190.0040.00416.70
7.4.160.0120.00916.52
7.4.150.0120.01117.40
7.4.140.0090.00917.86
7.4.130.0080.00916.51
7.4.120.0060.01216.48
7.4.110.0100.00616.37
7.4.100.0060.01216.43
7.4.90.0090.00916.37
7.4.80.0110.00619.39
7.4.70.0090.01216.47
7.4.60.0160.00316.45
7.4.50.0000.00816.17
7.4.40.0110.00722.77
7.4.30.0140.00316.48
7.4.00.0000.01414.59
7.3.330.0050.00013.18
7.3.320.0030.00313.12
7.3.310.0000.00716.16
7.3.300.0070.00016.27
7.3.290.0110.00616.41
7.3.280.0040.01316.27
7.3.270.0150.00417.40
7.3.260.0140.00316.21
7.3.250.0090.00816.26
7.3.240.0140.00416.37
7.3.230.0120.00816.39
7.3.210.0120.00616.23
7.3.200.0050.01119.39
7.3.190.0060.01516.35
7.3.180.0100.00616.18
7.3.170.0100.00616.48
7.3.160.0040.01116.27
7.3.120.0050.01114.76
7.3.110.0030.00914.63
7.3.100.0060.00814.69
7.3.90.0050.00914.82
7.3.80.0070.00714.70
7.3.70.0050.00914.77
7.3.60.0030.00914.56
7.3.50.0040.00614.84
7.3.40.0020.01214.67
7.3.30.0030.00814.54
7.3.20.0080.00716.63
7.3.10.0030.01116.55
7.3.00.0060.00916.63
7.2.330.0110.00716.40
7.2.320.0020.01516.58
7.2.310.0150.00716.40
7.2.300.0060.00916.69
7.2.290.0100.00716.58
7.2.240.0070.00715.12
7.2.230.0090.00714.79
7.2.220.0050.00514.91
7.2.210.0050.01214.70
7.2.200.0090.00514.80
7.2.190.0030.01014.80
7.2.180.0090.00714.91
7.2.170.0080.00714.98
7.2.160.0050.01014.80
7.2.150.0070.00516.68
7.2.140.0040.01016.76
7.2.130.0080.00616.72
7.2.120.0030.01116.63
7.2.110.0070.00816.90
7.2.100.0150.00816.91
7.2.90.0050.01116.69
7.2.80.0090.00716.90
7.2.70.0050.00716.80
7.2.60.0070.00616.63
7.2.50.0110.00316.84
7.2.40.0060.00816.73
7.2.30.0080.00916.69
7.2.20.0100.00316.92
7.2.10.0030.01316.75
7.2.00.0090.00516.86
7.1.330.0060.00815.89
7.1.320.0010.01015.72
7.1.310.0080.00615.80
7.1.300.0030.01215.72
7.1.290.0030.01215.63
7.1.280.0050.01015.82
7.1.270.0070.00915.69
7.1.260.0020.01215.56
7.1.250.0020.01015.68
7.1.200.0040.01115.61
7.1.70.0040.00417.18
7.1.60.0120.00619.82
7.1.50.0070.01716.87
7.1.00.0030.07322.36
7.0.200.0060.00616.82
7.0.140.0070.06322.06
7.0.60.0100.03319.92
7.0.50.0070.08017.87
7.0.40.0030.05020.24
7.0.30.0470.07020.00
7.0.20.0300.05020.20
7.0.10.0170.07720.00
7.0.00.0070.09020.38
5.6.280.0030.07320.89
5.6.210.0100.06020.47
5.6.200.0130.07718.23
5.6.190.0030.06320.61
5.6.180.0330.04020.56
5.6.170.0300.05020.51
5.6.160.0130.08020.33
5.6.150.0070.03318.18
5.6.140.0170.06318.22
5.6.130.0030.08718.12
5.6.120.0000.04320.87
5.6.110.0130.07020.88
5.6.100.0100.07320.97
5.6.90.0070.08021.07
5.6.80.0000.04320.47
5.5.350.0170.06720.42
5.5.340.0130.07717.98
5.5.330.0030.08320.19
5.5.320.0300.08320.42
5.5.310.0330.07020.17
5.5.300.0070.08017.92
5.5.290.0130.06317.97
5.5.280.0200.05320.87
5.5.270.0100.05320.64
5.5.260.0130.07720.75
5.5.250.0070.05720.47
5.5.240.0030.08320.26
5.4.450.1070.03319.61
5.4.440.1170.03319.12
5.4.430.0770.05019.40
5.4.420.0800.04019.41
5.4.410.0630.05319.28
5.4.400.0470.04019.10
5.4.390.1000.02719.08
5.4.380.0270.06018.72
5.4.370.0300.05318.64
5.4.360.0430.05018.62
5.4.350.0270.05318.73
5.4.340.0200.06318.77
5.4.320.0070.03912.46
5.4.310.0080.03912.46
5.4.300.0070.04412.46
5.4.290.0050.04512.46
5.4.280.0060.03512.35
5.4.270.0080.04012.36
5.4.260.0100.05018.88
5.4.250.0200.04718.88
5.4.240.0130.07018.79
5.4.230.0130.04718.80
5.4.220.0100.05718.66
5.4.210.0170.05718.89
5.4.200.0070.05018.99
5.4.190.0130.05018.76
5.4.180.0070.05318.93
5.4.170.0130.07318.99
5.4.160.0100.05018.93
5.4.150.0130.05718.78
5.4.140.0100.05316.27
5.4.130.0070.06016.28
5.4.120.0170.06016.23
5.4.110.0070.05016.49
5.4.100.0030.05316.36
5.4.90.0070.05316.35
5.4.80.0030.05016.25
5.4.70.0170.04016.28
5.4.60.0130.04016.40
5.4.50.0130.04316.48
5.4.40.0070.06316.38
5.4.30.0200.04016.20
5.4.20.0170.06016.37
5.4.10.0130.04716.23
5.4.00.0100.05015.94
5.3.290.0070.04012.80
5.3.280.0030.05314.45
5.3.270.0030.05714.52
5.3.260.0100.07314.31
5.3.250.0070.05314.32
5.3.240.0130.05314.62
5.3.230.0100.06314.37
5.3.220.0030.07714.57
5.3.210.0030.06014.57
5.3.200.0130.04314.43
5.3.190.0130.04714.28
5.3.180.0070.05014.26
5.3.170.0070.05014.59
5.3.160.0070.04714.56
5.3.150.0030.05314.57
5.3.140.0070.05314.39
5.3.130.0100.05314.55
5.3.120.0130.04714.59
5.3.110.0100.06014.34
5.3.100.0000.05713.88
5.3.90.0030.05013.89
5.3.80.0170.05714.02
5.3.70.0100.05313.72
5.3.60.0030.05313.85
5.3.50.0130.06313.96
5.3.40.0070.05014.10
5.3.30.0100.04713.82
5.3.20.0070.05313.70
5.3.10.0070.04713.35
5.3.00.0130.04313.79
5.2.170.0030.06011.05
5.2.160.0170.03711.15
5.2.150.0100.04011.14
5.2.140.0100.04711.15
5.2.130.0100.05311.00
5.2.120.0070.05711.01
5.2.110.0070.03711.00
5.2.100.0170.02711.11
5.2.90.0130.03311.11
5.2.80.0070.04011.20
5.2.70.0170.04711.01
5.2.60.0070.04710.98
5.2.50.0000.04311.14
5.2.40.0030.05710.89
5.2.30.0030.04010.73
5.2.20.0130.03310.89
5.2.10.0030.04010.93
5.2.00.0070.06010.80
5.1.60.0030.05010.02
5.1.50.0130.02310.04
5.1.40.0070.0379.89
5.1.30.0070.05010.55
5.1.20.0030.04310.27
5.1.10.0100.03310.09
5.1.00.0030.0509.96
5.0.50.0100.0238.60
5.0.40.0000.0408.64
5.0.30.0030.0438.31
5.0.20.0070.0238.25
5.0.10.0070.0308.31
5.0.00.0070.0378.15
4.4.90.0070.0206.88
4.4.80.0030.0206.88
4.4.70.0030.0206.88
4.4.60.0030.0206.88
4.4.50.0000.0306.88
4.4.40.0030.0336.88
4.4.30.0030.0306.88
4.4.20.0000.0236.88
4.4.10.0100.0236.88
4.4.00.0070.0306.88
4.3.110.0030.0206.88
4.3.100.0000.0236.88
4.3.90.0000.0236.88
4.3.80.0000.0336.88
4.3.70.0000.0336.88
4.3.60.0070.0276.88
4.3.50.0000.0276.88
4.3.40.0070.0406.88
4.3.30.0070.0176.88
4.3.20.0100.0176.88
4.3.10.0000.0236.88
4.3.00.0230.01314.47

preferences:
40.9 ms | 401 KiB | 5 Q