3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); $redirect_uri = 'http://path/to/app/callback'; $url = 'https://getpocket.com/v3/oauth/request'; $data = array('consumer_key' => '27963-b8ab8bc16d50240c6b5aa93b', 'redirect_uri' => $redirect_uri); // use key 'http' even if you send the request to https://... $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded; charset=UTF-8", 'method' => 'POST', 'content' => http_build_query($data), ), ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); $request_token = str_replace('code=','',$result); $_SESSION['request_token'] = $request_token; header("Location: https://getpocket.com/auth/authorize?request_token=$request_token&redirect_uri=$redirect_uri"); die(); ?>

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.75
8.3.50.0110.00522.00
8.3.40.0120.00618.96
8.3.30.0060.00919.27
8.3.20.0040.00420.39
8.3.10.0080.00023.53
8.3.00.0080.00022.39
8.2.180.0110.01117.00
8.2.170.0070.01422.96
8.2.160.0110.00322.24
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00422.24
8.2.110.0000.01022.20
8.2.100.0040.00718.03
8.2.90.0030.00517.88
8.2.80.0050.00318.05
8.2.70.0080.00017.93
8.2.60.0000.00818.15
8.2.50.0000.00818.10
8.2.40.0050.00320.50
8.2.30.0070.00018.29
8.2.20.0040.00417.84
8.2.10.0040.00418.00
8.2.00.0040.00417.86
8.1.280.0000.01425.92
8.1.270.0080.00023.86
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00022.24
8.1.230.0090.00319.14
8.1.220.0040.00417.88
8.1.210.0030.00518.77
8.1.200.0040.00417.25
8.1.190.0050.00317.12
8.1.180.0040.00418.10
8.1.170.0030.00618.66
8.1.160.0050.00322.04
8.1.150.0040.00418.65
8.1.140.0000.00817.48
8.1.130.0050.00317.92
8.1.120.0040.00417.45
8.1.110.0040.00417.49
8.1.100.0040.00417.49
8.1.90.0000.00817.55
8.1.80.0070.00017.48
8.1.70.0070.00017.45
8.1.60.0050.00517.58
8.1.50.0030.00517.54
8.1.40.0030.00617.56
8.1.30.0050.00317.51
8.1.20.0080.00017.62
8.1.10.0040.00417.51
8.1.00.0070.00017.43
8.0.300.0040.00419.88
8.0.290.0030.00517.00
8.0.280.0070.00018.59
8.0.270.0070.00017.34
8.0.260.0030.00317.04
8.0.250.0070.00017.18
8.0.240.0000.00717.09
8.0.230.0060.00317.15
8.0.220.0030.00316.97
8.0.210.0070.00017.10
8.0.200.0030.00317.11
8.0.190.0000.00717.10
8.0.180.0020.00517.00
8.0.170.0040.00416.98
8.0.160.0000.00716.96
8.0.150.0040.00417.09
8.0.140.0030.00517.10
8.0.130.0030.00313.52
8.0.120.0030.00617.06
8.0.110.0000.00716.99
8.0.100.0050.00216.93
8.0.90.0040.00417.03
8.0.80.0100.00717.11
8.0.70.0030.00617.07
8.0.60.0000.00717.03
8.0.50.0090.00016.97
8.0.30.0100.00917.22
8.0.20.0090.01317.40
8.0.10.0000.00716.96
8.0.00.0110.00816.80
7.4.330.0030.00315.02
7.4.320.0000.00616.60
7.4.300.0000.00616.64
7.4.290.0070.00016.61
7.4.280.0000.00816.60
7.4.270.0000.00716.50
7.4.260.0030.00316.64
7.4.250.0000.00816.48
7.4.240.0020.00516.59
7.4.230.0040.00416.46
7.4.220.0070.01116.55
7.4.210.0040.01216.57
7.4.200.0000.00716.67
7.4.190.0030.00516.79
7.4.160.0140.00316.46
7.4.150.0030.01917.40
7.4.140.0110.00817.86
7.4.130.0100.00716.45
7.4.120.0070.01116.60
7.4.110.0080.00816.66
7.4.100.0060.01216.71
7.4.90.0110.01116.60
7.4.80.0120.00716.63
7.4.70.0100.00716.57
7.4.60.0060.01216.66
7.4.50.0000.00916.26
7.4.40.0040.01422.77
7.4.30.0130.00316.62
7.4.10.0070.01214.98
7.4.00.0070.00915.02
7.3.330.0030.00313.32
7.3.320.0020.00213.33
7.3.310.0000.00716.37
7.3.300.0040.00416.49
7.3.290.0090.00616.41
7.3.280.0110.00716.43
7.3.270.0120.00617.40
7.3.260.0100.00716.66
7.3.250.0100.00816.41
7.3.240.0130.00416.48
7.3.230.0100.00616.63
7.3.210.0080.00816.53
7.3.200.0170.00019.39
7.3.190.0090.01016.68
7.3.180.0100.00616.45
7.3.170.0080.00816.54
7.3.160.0090.00616.51
7.3.130.0090.01014.88
7.3.120.0070.00914.92
7.3.110.0100.01014.96
7.3.100.0030.01214.72
7.3.90.0100.00714.95
7.3.80.0000.01415.06
7.3.70.0100.00514.97
7.3.60.0090.00614.87
7.3.50.0110.00314.79
7.3.40.0050.00714.90
7.3.30.0080.00814.96
7.3.20.0100.00516.71
7.3.10.0080.00816.68
7.3.00.0040.00716.81
7.2.330.0160.01016.77
7.2.320.0000.01716.80
7.2.310.0040.01316.88
7.2.300.0120.01216.59
7.2.290.0160.00016.82
7.2.260.0050.01515.07
7.2.250.0070.01114.87
7.2.240.0070.00815.09
7.2.230.0050.00815.19
7.2.220.0050.01114.98
7.2.210.0080.00815.06
7.2.200.0050.00915.05
7.2.190.0030.01115.16
7.2.180.0050.00815.15
7.2.170.0020.01015.03
7.2.160.0010.01114.92
7.2.150.0110.00516.97
7.2.140.0070.01216.80
7.2.130.0080.00516.77
7.2.120.0070.00717.07
7.2.110.0090.00616.83
7.2.100.0080.00816.89
7.2.90.0130.00317.07
7.2.80.0060.00817.00
7.2.70.0070.00816.97
7.2.60.0070.00816.92
7.2.50.0070.00817.00
7.2.40.0050.00916.97
7.2.30.0100.00616.99
7.2.20.0040.01016.95
7.2.10.0060.00716.88
7.2.00.0070.00817.65
7.1.330.0010.01115.76
7.1.320.0060.00815.63
7.1.310.0050.00515.84
7.1.300.0070.00515.95
7.1.290.0060.01115.65
7.1.280.0040.01015.77
7.1.270.0060.00615.61
7.1.260.0050.00915.81
7.1.250.0060.00915.92
7.1.240.0040.01115.67
7.1.230.0090.00515.77
7.1.220.0070.00615.87
7.1.210.0050.00915.87
7.1.200.0070.00915.81
7.1.190.0050.00615.90
7.1.180.0070.00515.78
7.1.170.0030.00915.87
7.1.160.0030.00815.84
7.1.150.0030.01015.72
7.1.140.0030.00815.79
7.1.130.0000.01415.65
7.1.120.0090.00616.03
7.1.110.0020.01015.77
7.1.100.0050.01216.81
7.1.90.0020.01416.04
7.1.80.0070.00715.94
7.1.70.0070.00716.40
7.1.60.0100.00717.03
7.1.50.0070.01116.36
7.1.40.0040.01115.95
7.1.30.0070.00515.87
7.1.20.0080.00715.75
7.1.10.0040.00615.76
7.1.00.0040.03018.11
7.0.330.0030.00815.52
7.0.320.0030.01015.54
7.0.310.0050.00715.28
7.0.300.0040.00915.14
7.0.290.0080.00815.50
7.0.280.0060.00815.46
7.0.270.0060.01015.51
7.0.260.0070.00515.51
7.0.250.0000.01015.44
7.0.240.0070.00515.56
7.0.230.0060.00515.49
7.0.220.0030.00915.55
7.0.210.0070.00515.51
7.0.200.0080.00516.06
7.0.190.0040.00715.49
7.0.180.0030.01215.42
7.0.170.0050.00915.42
7.0.160.0100.00215.48
7.0.150.0000.01215.28
7.0.140.0060.03017.75
7.0.130.0070.00515.10
7.0.120.0010.00915.50
7.0.110.0050.00715.45
7.0.100.0090.00515.21
7.0.90.0000.01115.42
7.0.80.0070.00615.36
7.0.70.0060.00815.37
7.0.60.0030.02317.05
7.0.50.0050.01916.32
7.0.40.0050.02115.87
7.0.30.0170.03115.73
7.0.20.0090.03615.84
7.0.10.0080.03215.93
7.0.00.0110.02915.75
5.6.400.0050.00714.35
5.6.390.0080.00514.39
5.6.380.0060.00714.45
5.6.370.0070.00814.36
5.6.360.0020.01114.45
5.6.350.0060.00414.31
5.6.340.0030.01014.45
5.6.330.0100.00514.51
5.6.320.0090.00314.35
5.6.310.0070.00714.36
5.6.300.0040.00914.41
5.6.290.0030.00814.58
5.6.280.0060.02816.72
5.6.270.0080.00914.54
5.6.260.0060.00814.52
5.6.250.0060.00414.71
5.6.240.0030.00914.42
5.6.230.0020.01014.44
5.6.220.0080.00614.38
5.6.210.0060.02016.62
5.6.200.0040.01815.68
5.6.190.0080.02716.55
5.6.180.0170.02616.82
5.6.170.0130.01816.45
5.6.160.0070.02316.54
5.6.150.0050.03215.81
5.6.140.0080.02915.89
5.6.130.0090.03115.75
5.6.120.0080.03416.50
5.6.110.0050.02716.72
5.6.100.0070.03116.79
5.6.90.0030.02716.71
5.6.80.0060.02316.44
5.6.70.0030.01114.38
5.6.60.0030.00914.48
5.6.50.0050.00614.36
5.6.40.0080.00514.27
5.6.30.0060.00314.32
5.6.20.0030.01014.32
5.6.10.0080.00614.38
5.6.00.0070.01014.28
5.5.380.0020.01114.39
5.5.370.0060.00814.44
5.5.360.0070.01114.52
5.5.350.0130.02916.44
5.5.340.0030.02215.85
5.5.330.0020.02616.55
5.5.320.0050.01916.49
5.5.310.0140.02116.38
5.5.300.0070.03015.74
5.5.290.0050.02115.64
5.5.280.0030.02516.57
5.5.270.0070.02016.83
5.5.260.0050.03316.55
5.5.250.0070.03416.44
5.5.240.0120.02816.35
5.5.230.0040.00614.36
5.5.220.0020.01114.25
5.5.210.0070.00614.22
5.5.200.0050.00914.05
5.5.190.0060.00814.42
5.5.180.0080.00514.21
5.5.170.0030.01314.41
5.5.160.0050.01114.39
5.5.150.0020.00714.46
5.5.140.0070.00714.38
5.5.130.0000.01514.43
5.5.120.0110.00514.36
5.5.110.0050.01214.30
5.5.100.0030.01014.26
5.5.90.0040.01214.14
5.5.80.0060.00914.36
5.5.70.0030.00914.59
5.5.60.0050.00714.30
5.5.50.0050.00414.30
5.5.40.0070.00714.29
5.5.30.0050.01014.27
5.5.20.0050.00814.42
5.5.10.0030.01014.32
5.5.00.0030.01014.24
5.4.450.0150.02314.34
5.4.440.0280.02414.27
5.4.430.0060.02014.25
5.4.420.0380.01414.34
5.4.410.0470.01314.32
5.4.400.0170.01214.24
5.4.390.0240.02014.22
5.4.380.0110.02514.12
5.4.370.0090.02614.10
5.4.360.0170.01914.06
5.4.350.0140.02114.15
5.4.340.0150.02314.11
5.4.330.0070.00411.71
5.4.320.0060.01611.89
5.4.310.0060.01811.95
5.4.300.0050.01711.85
5.4.290.0040.02011.91
5.4.280.0050.02811.89
5.4.270.0050.02311.82
5.4.260.0050.02411.90
5.4.250.0080.02011.90
5.4.240.0160.03611.88
5.4.230.0110.02911.77
5.4.220.0090.03811.96
5.4.210.0070.03811.87
5.4.200.0070.03311.94
5.4.190.0070.02211.77
5.4.180.0090.02611.78
5.4.170.0040.01911.85
5.4.160.0040.02111.85
5.4.150.0060.01711.88
5.4.140.0050.01811.70
5.4.130.0060.01611.83
5.4.120.0070.01511.76
5.4.110.0060.01711.77
5.4.100.0070.01611.79
5.4.90.0060.01811.85
5.4.80.0070.01711.74
5.4.70.0050.01811.68
5.4.60.0040.01811.76
5.4.50.0040.01711.70
5.4.40.0080.01211.73
5.4.30.0090.01811.78
5.4.20.0060.02511.66
5.4.10.0030.02411.77
5.4.00.0050.02111.67
5.3.290.0040.02011.86
5.3.280.0060.02011.73
5.3.270.0040.02311.85
5.3.260.0090.02011.80
5.3.250.0050.02211.86
5.3.240.0030.02211.80
5.3.230.0070.02011.82
5.3.220.0050.02311.82
5.3.210.0050.02311.76
5.3.200.0050.02411.79
5.3.190.0060.01711.78
5.3.180.0070.01911.76
5.3.170.0080.01611.82
5.3.160.0060.01811.83
5.3.150.0100.01711.81
5.3.140.0050.01811.79
5.3.130.0080.01911.81
5.3.120.0060.02211.76
5.3.110.0060.03011.79
5.3.100.0070.02311.61
5.3.90.0030.02311.62
5.3.80.0040.03611.61
5.3.70.0080.01411.62
5.3.60.0060.01611.59
5.3.50.0050.01811.62
5.3.40.0060.01811.59
5.3.30.0050.02211.58
5.3.20.0070.01811.41
5.3.10.0040.02211.41
5.3.00.0080.01911.34
5.2.170.0100.0369.19
5.2.160.0080.0389.19
5.2.150.0110.0599.18
5.2.140.0190.0559.18
5.2.130.0180.0619.14
5.2.120.0150.0819.14
5.2.110.0030.0349.14
5.2.100.0080.0409.15
5.2.90.0090.0409.14
5.2.80.0050.0339.14
5.2.70.0050.0369.13
5.2.60.0080.0539.09
5.2.50.0070.0339.06
5.2.40.0070.0319.04
5.2.30.0040.0409.02
5.2.20.0070.0398.91
5.2.10.0050.0488.85
5.2.00.0090.0458.71
5.1.60.0080.0328.11
5.1.50.0060.0288.10
5.1.40.0060.0318.08
5.1.30.0060.0308.43
5.1.20.0080.0348.45
5.1.10.0040.0358.18
5.1.00.0080.0258.18
5.0.50.0050.0236.66
5.0.40.0060.0236.52
5.0.30.0030.0346.33
5.0.20.0040.0226.30
5.0.10.0060.0236.29
5.0.00.0050.0396.27
4.4.90.0040.0164.78
4.4.80.0040.0174.76
4.4.70.0030.0194.76
4.4.60.0040.0164.75
4.4.50.0040.0164.77
4.4.40.0050.0284.71
4.4.30.0050.0164.76
4.4.20.0050.0164.85
4.4.10.0030.0184.85
4.4.00.0050.0264.76
4.3.110.0060.0164.67
4.3.100.0040.0214.67
4.3.90.0030.0184.64
4.3.80.0050.0334.58
4.3.70.0050.0164.63
4.3.60.0020.0184.63
4.3.50.0050.0174.63
4.3.40.0050.0264.54
4.3.30.0020.0223.32
4.3.20.0020.0233.30
4.3.10.0030.0173.25
4.3.00.0000.01713.64

preferences:
45.27 ms | 401 KiB | 5 Q