3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = ''; $cURL = curl_init(); $data = '{}'; curl_setopt($cURL, CURLOPT_URL, $url); curl_setopt($cURL, CURLOPT_POST, true); curl_setopt($cURL, CURLOPT_POSTFIELDS, $data); curl_setopt($cURL, CURLOPT_HEADER, 1); curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1); curl_setopt($cURL, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'Accept: application/json' )); $result = curl_exec($cURL); preg_match_all('/^Set-Cookie:\s*([^;]*)/mi', $result, $matches); // get cookie $cookies = array(); foreach($matches[1] as $item) { parse_str($item, $cookie); $token = $cookie['XSRF-TOKEN']; $session = ($cookie['session']); echo $token; } curl_close($cURL); echo $token; ?>

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.0060.01218.05
8.3.50.0070.01116.27
8.3.40.0110.00418.85
8.3.30.0120.00318.66
8.3.20.0080.00018.90
8.3.10.0080.00023.49
8.3.00.0000.00823.48
8.2.180.0110.00417.00
8.2.170.0070.00722.96
8.2.160.0120.00319.43
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00721.05
8.2.110.0050.00519.38
8.2.100.0040.00817.84
8.2.90.0060.00317.75
8.2.80.0000.00917.97
8.2.70.0030.00517.91
8.2.60.0040.00417.97
8.2.50.0050.00318.10
8.2.40.0030.00519.36
8.2.30.0050.00320.64
8.2.20.0040.00717.93
8.2.10.0000.00818.14
8.2.00.0030.00519.44
8.1.280.0070.01425.92
8.1.270.0080.00022.08
8.1.260.0090.00926.35
8.1.250.0000.00828.09
8.1.240.0060.00323.70
8.1.230.0040.00822.68
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0080.00018.50
8.1.160.0070.00018.89
8.1.150.0000.00818.84
8.1.140.0000.01018.83
8.1.130.0030.00619.09
8.1.120.0040.00417.45
8.1.110.0040.00417.44
8.1.100.0040.00417.30
8.1.90.0050.00317.34
8.1.80.0080.00017.34
8.1.70.0030.00317.31
8.1.60.0030.00517.59
8.1.50.0040.00417.57
8.1.40.0050.00317.50
8.1.30.0060.00317.50
8.1.20.0040.00817.61
8.1.10.0000.00717.55
8.1.00.0000.00817.53
8.0.300.0040.00419.93
8.0.290.0060.00316.75
8.0.280.0040.00318.39
8.0.270.0040.00417.14
8.0.260.0030.00316.76
8.0.250.0030.00317.00
8.0.240.0040.00417.00
8.0.230.0030.00316.97
8.0.220.0000.00816.79
8.0.210.0070.00016.89
8.0.200.0000.00616.98
8.0.190.0080.00017.02
8.0.180.0000.00816.87
8.0.170.0040.00416.93
8.0.160.0080.00016.97
8.0.150.0070.00016.82
8.0.140.0000.00716.76
8.0.130.0000.00613.37
8.0.120.0000.00716.86
8.0.110.0070.00016.98
8.0.100.0040.00416.91
8.0.90.0000.00716.72
8.0.80.0070.01316.93
8.0.70.0040.00416.82
8.0.60.0040.00416.79
8.0.50.0040.00416.81
8.0.30.0070.01017.21
8.0.20.0110.01017.40
8.0.10.0000.00717.00
8.0.00.0040.01516.89
7.4.330.0000.00615.55
7.4.320.0000.00616.52
7.4.300.0030.00316.62
7.4.290.0000.00816.64
7.4.280.0050.00316.62
7.4.270.0070.00316.64
7.4.260.0000.00716.50
7.4.250.0040.00416.59
7.4.240.0030.00616.62
7.4.230.0040.00416.72
7.4.220.0040.00416.66
7.4.210.0080.01016.55
7.4.200.0030.00316.70
7.4.160.0130.00516.61
7.4.140.0120.00717.86
7.4.130.0190.00516.70
7.4.120.0130.00716.52
7.4.110.0040.01816.54
7.4.100.0100.01016.51
7.4.90.0140.00716.51
7.4.80.0100.00619.39
7.4.70.0100.00616.71
7.4.60.0100.00616.39
7.4.50.0070.01016.55
7.4.40.0110.00716.49
7.4.00.0130.00314.83
7.3.330.0000.00513.14
7.3.320.0000.00513.13
7.3.310.0040.00416.25
7.3.300.0070.00016.25
7.3.290.0000.00716.25
7.3.280.0080.01116.34
7.3.260.0090.01016.35
7.3.240.0100.00816.35
7.3.230.0100.00616.60
7.3.210.0160.00016.32
7.3.200.0040.01216.29
7.3.190.0110.00516.27
7.3.180.0180.00316.27
7.3.170.0030.01316.40
7.3.160.0030.01316.32
7.3.10.0070.00716.41
7.3.00.0030.01016.50
7.2.330.0090.00916.64
7.2.320.0130.00716.33
7.2.310.0040.01816.50
7.2.300.0130.00616.39
7.2.290.0140.00416.29
7.2.130.0090.00616.68
7.2.120.0070.00616.85
7.2.110.0060.00816.55
7.2.100.0100.00416.62
7.2.90.0270.00616.11
7.2.80.0280.00616.17
7.2.70.0190.00816.19
7.2.60.0270.00916.20
7.2.50.0270.00415.97
7.2.40.0360.00216.04
7.2.30.0280.00916.02
7.2.20.0290.00516.12
7.2.10.0270.00816.16
7.2.00.0250.00816.04
7.1.250.0070.00715.71
7.1.210.0610.01013.75
7.1.200.0580.00713.77
7.1.190.0520.00313.96
7.1.180.0540.00713.70
7.1.170.0710.00313.93
7.1.160.0670.00713.46
7.1.150.0510.01013.61
7.1.140.0850.00713.76
7.1.130.0630.01613.63
7.1.120.0860.00613.74
7.1.110.0630.00613.80
7.1.100.0540.00813.80
7.1.90.0550.00913.62
7.1.80.0810.01013.51
7.1.70.0590.00313.63
7.1.60.0750.00931.75
7.1.50.0720.01431.51
7.1.40.0910.00331.57
7.1.30.0830.00731.55
7.1.20.0980.01331.23
7.1.10.0810.00313.33
7.1.00.0740.01013.54

preferences:
53.33 ms | 400 KiB | 5 Q