3v4l.org

run code in 300+ PHP versions simultaneously
<?php $finalurl = "http://www.manta.com/"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $finalurl); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($ch, CURLOPT_HEADER ,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); $contents = curl_exec($ch); curl_close($ch); // get cookies $cookies = array(); //var_dump(getallheaders()); preg_match_all('/Set-Cookie:(?<cookie>\s{0,}.*)$/im', $contents, $cookies); $a= $cookies['cookie'][2]; /*echo "<pre>"; print_r($cookies['cookie']);exit;*/ $aa = explode('member_session=',$a); $token = explode(';',$aa[1]); $member_session = $token[0]; $cust= $cookies['cookie'][5]; $cust1 = explode('cust_id=',$cust); $token1 = explode(';',$cust1[1]); $cust_id = $token1[0]; $clientlogin_url = "http://www.manta.com/mb?search=grand+hyatt+new+york+10017&search_source=home"; $clientlogin_post = array( "search" => "grand hyatt new york 10017", "search_source" => "home" ); $headers = array(); $headers[] = "Host:www.manta.com"; $headers[] = "Referer:http://www.manta.com/"; //$headers[] = "X-Requested-With:XMLHttpRequest"; $headers[] = "member_session=".$member_session."; refer_id_persistent=0000; cust_id=".$cust_id.""; //print_r($headers); $curl = curl_init($clientlogin_url); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $clientlogin_post); //curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($curl); // get cookies //$cookies = array(); //preg_match_all('/Set-Cookie:(?<cookie>\s{0,}.*)$/im', $response, $cookies); // echo $cookies['cookie'][1]; //print_r($cookies['cookie']); echo "<pre>"; print_r($response); ?>

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.70.0090.00616.88
8.3.60.0120.00918.55
8.3.50.0100.01021.08
8.3.40.0110.00418.79
8.3.30.0030.01020.31
8.3.20.0040.00420.22
8.3.10.0040.00422.09
8.3.00.0040.00422.51
8.2.180.0150.00617.00
8.2.170.0070.00722.96
8.2.160.0100.00322.09
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0030.00626.16
8.2.120.0040.00420.72
8.2.110.0030.00620.38
8.2.100.0080.00417.72
8.2.90.0050.00318.91
8.2.80.0040.00419.28
8.2.70.0060.00317.63
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0000.00918.34
8.2.30.0070.00019.42
8.2.20.0000.00717.54
8.2.10.0000.00717.84
8.2.00.0050.00217.77
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00723.78
8.1.230.0100.00021.00
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.53
8.1.180.0080.00018.10
8.1.170.0040.00418.51
8.1.160.0040.00418.90
8.1.150.0050.00218.59
8.1.140.0040.00417.34
8.1.130.0030.00317.79
8.1.120.0040.00417.39
8.1.110.0050.00317.42
8.1.100.0070.00017.43
8.1.90.0040.00417.32
8.1.80.0000.00717.30
8.1.70.0030.00317.43
8.1.60.0000.00817.60
8.1.50.0000.00817.59
8.1.40.0060.00317.56
8.1.30.0000.00817.56
8.1.20.0030.00517.68
8.1.10.0040.00417.57
8.1.00.0020.00517.48
8.0.300.0040.00418.77
8.0.290.0000.00817.04
8.0.280.0030.00518.36
8.0.270.0040.00417.23
8.0.260.0030.00316.98
8.0.250.0000.00817.02
8.0.240.0000.00817.03
8.0.230.0030.00316.99
8.0.220.0000.00716.80
8.0.210.0040.00416.93
8.0.200.0070.00016.90
8.0.190.0040.00417.04
8.0.180.0050.00216.86
8.0.170.0040.00416.84
8.0.160.0040.00416.77
8.0.150.0000.00716.86
8.0.140.0060.00316.84
8.0.130.0030.00313.39
8.0.120.0050.00316.91
8.0.110.0040.00416.89
8.0.100.0000.00916.80
8.0.90.0040.00416.80
8.0.80.0060.00916.89
8.0.70.0040.00416.99
8.0.60.0000.00716.80
8.0.50.0030.00516.78
8.0.30.0080.01117.19
8.0.20.0110.00817.40
8.0.10.0050.00217.08
8.0.00.0110.01016.78
7.4.330.0060.00016.67
7.4.320.0070.00016.54
7.4.300.0000.00616.64
7.4.290.0070.00016.59
7.4.280.0080.00016.41
7.4.270.0000.00716.67
7.4.260.0030.00313.24
7.4.250.0030.00516.56
7.4.240.0030.00416.53
7.4.230.0030.00316.73
7.4.220.0060.01816.68
7.4.210.0080.00716.61
7.4.200.0030.00316.73
7.4.190.0030.00316.46
7.4.160.0070.01516.61
7.4.150.0100.00717.40
7.4.140.0110.00617.86
7.4.130.0080.00816.67
7.4.120.0080.01116.63
7.4.110.0100.00716.86
7.4.100.0080.01216.42
7.4.90.0000.01816.72
7.4.80.0140.00319.39
7.4.70.0000.01616.62
7.4.60.0110.00616.54
7.4.50.0060.00316.62
7.4.40.0070.01022.77
7.4.30.0030.01316.61
7.4.00.0050.00815.06
7.3.330.0020.00213.21
7.3.320.0050.00013.27
7.3.310.0070.00016.30
7.3.300.0040.00416.36
7.3.290.0130.00016.38
7.3.280.0110.00916.36
7.3.270.0070.01117.40
7.3.260.0080.00918.24
7.3.250.0070.01416.46
7.3.240.0100.00716.55
7.3.230.0030.01416.46
7.3.210.0030.01316.36
7.3.200.0090.01619.39
7.3.190.0180.00016.60
7.3.180.0060.00916.34
7.3.170.0130.00316.40
7.3.160.0060.01016.58
7.3.120.0000.01614.84
7.3.110.0070.01114.47
7.3.100.0090.00614.98
7.3.90.0110.00315.05
7.3.80.0030.00914.64
7.3.70.0030.01414.96
7.3.60.0070.00714.85
7.3.50.0080.00414.66
7.3.40.0000.01114.61
7.3.30.0000.01114.60
7.3.20.0100.01016.49
7.3.10.0070.00616.63
7.3.00.0050.00716.57
7.2.330.0090.00916.46
7.2.320.0100.00716.52
7.2.310.0030.01516.68
7.2.300.0070.00916.65
7.2.290.0100.00616.31
7.2.250.0120.00615.04
7.2.240.0120.00414.53
7.2.230.0070.00714.91
7.2.220.0080.00614.91
7.2.210.0030.00915.09
7.2.200.0000.00914.99
7.2.190.0030.00614.91
7.2.180.0030.01014.80
7.2.170.0060.00914.90
7.2.160.0070.01115.04
7.2.150.0030.01716.66
7.2.140.0000.01616.64
7.2.130.0070.00616.59
7.2.120.0030.01116.75
7.2.110.0070.00516.72
7.2.100.0060.00816.68
7.2.90.0040.00716.76
7.2.80.0050.00816.61
7.2.70.0050.00816.76
7.2.60.0070.00916.70
7.2.50.0070.00616.72
7.2.40.0040.01116.84
7.2.30.0040.00716.88
7.2.20.0080.00416.75
7.2.10.0090.00616.75
7.2.00.0020.00917.34
7.1.330.0100.00715.35
7.1.320.0070.00715.50
7.1.310.0070.00715.55
7.1.300.0100.00315.68
7.1.290.0030.01215.75
7.1.280.0030.00915.40
7.1.270.0110.00415.70
7.1.260.0030.00615.44
7.1.250.0040.00615.64
7.1.240.0010.00715.66
7.1.230.0050.00615.61
7.1.220.0070.00815.44
7.1.210.0020.00715.51
7.1.200.0060.00615.65
7.1.190.0060.00715.58
7.1.180.0020.01215.60
7.1.170.0060.00515.32
7.1.160.0070.00515.56
7.1.150.0030.00915.60
7.1.140.0030.00915.67
7.1.130.0060.00615.35
7.1.120.0030.01115.46
7.1.110.0060.00615.66
7.1.100.0060.00716.34
7.1.90.0050.00615.52
7.1.80.0060.00515.56
7.1.70.0040.00616.11
7.1.60.0080.00816.89
7.1.50.0060.01016.07
7.1.40.0140.00215.67
7.1.30.0020.01015.54
7.1.20.0100.00415.64
7.1.10.0120.00215.47
7.1.00.0040.01517.75
7.0.330.0050.01015.08
7.0.320.0070.00715.13
7.0.310.0020.00715.44
7.0.300.0030.00715.23
7.0.290.0060.00615.30
7.0.280.0070.00515.28
7.0.270.0040.00515.07
7.0.260.0050.00715.23
7.0.250.0080.00415.26
7.0.240.0020.00815.38
7.0.230.0030.00815.29
7.0.220.0040.00415.06
7.0.210.0060.00915.33
7.0.200.0070.00315.65
7.0.190.0020.00915.27
7.0.180.0040.00615.21
7.0.170.0040.00815.22
7.0.160.0030.00515.31
7.0.150.0040.00815.32
7.0.140.0090.02517.54
7.0.130.0070.00615.18
7.0.120.0040.00715.22
7.0.110.0070.00515.33
7.0.100.0040.01816.82
7.0.90.0050.01816.86
7.0.80.0050.02416.90
7.0.70.0050.03416.79
7.0.60.0080.02816.85
7.0.50.0080.03017.03
7.0.40.0100.02415.55
7.0.30.0050.02815.56
7.0.20.0060.03215.44
7.0.10.0080.02715.65
7.0.00.0050.03215.64
5.6.400.0000.01013.82
5.6.390.0030.00714.45
5.6.380.0050.00914.13
5.6.370.0050.00514.10
5.6.360.0070.00614.28
5.6.350.0020.01214.16
5.6.340.0030.01114.42
5.6.330.0050.00814.17
5.6.320.0100.00214.26
5.6.310.0090.00514.30
5.6.300.0030.00814.20
5.6.290.0080.00414.35
5.6.280.0050.02816.43
5.6.270.0080.00714.26
5.6.260.0060.00514.26
5.6.250.0060.03216.31
5.6.240.0060.01816.28
5.6.230.0050.03516.30
5.6.220.0060.03016.25
5.6.210.0030.03216.31
5.6.200.0070.02316.43
5.6.190.0080.03016.34
5.6.180.0080.03116.46
5.6.170.0100.02816.34
5.6.160.0100.02716.45
5.6.150.0030.03616.33
5.6.140.0040.03416.59
5.6.130.0070.03416.31
5.6.120.0060.03116.56
5.6.110.0050.03416.41
5.6.100.0050.03416.47
5.6.90.0100.03016.45
5.6.80.0090.02416.29
5.6.70.0020.03316.14
5.6.60.0040.03216.20
5.6.50.0110.02315.99
5.6.40.0060.03216.14
5.6.30.0060.03316.23
5.6.20.0120.02516.15
5.6.10.0080.03116.07
5.6.00.0030.03316.18
5.5.380.0030.03415.14
5.5.370.0030.03115.10
5.5.360.0090.02614.97
5.5.350.0060.02515.19
5.5.340.0060.02815.21
5.5.330.0040.03415.28
5.5.320.0050.03515.26
5.5.310.0050.01915.11
5.5.300.0060.03115.13
5.5.290.0040.03215.18
5.5.280.0040.02215.23
5.5.270.0040.03415.25
5.5.260.0040.03415.31
5.5.250.0070.03015.14
5.5.240.0070.01814.95
5.5.230.0060.02614.81
5.5.220.0070.02414.85
5.5.210.0070.02914.83
5.5.200.0050.03115.02
5.5.190.0060.03015.06
5.5.180.0060.02214.95
5.5.170.0040.00612.37
5.5.160.0080.02614.97
5.5.150.0030.03514.96
5.5.140.0040.02914.90
5.5.130.0060.03015.08
5.5.120.0060.01914.82
5.5.110.0050.02414.94
5.5.100.0020.02914.86
5.5.90.0040.03214.95
5.5.80.0050.02914.88
5.5.70.0050.02914.72
5.5.60.0080.02914.97
5.5.50.0040.02015.00
5.5.40.0080.02714.80
5.5.30.0090.02714.87
5.5.20.0080.01914.78
5.5.10.0050.03014.98
5.5.00.0060.03315.01
5.4.450.0080.02714.18
5.4.440.0060.03114.10
5.4.430.0030.03414.02
5.4.420.0080.02214.05
5.4.410.0020.02213.87
5.4.400.0070.02613.92
5.4.390.0070.01713.88
5.4.380.0060.02913.88
5.4.370.0050.02913.92
5.4.360.0070.02513.88
5.4.350.0010.02713.86
5.4.340.0040.03013.79
5.4.330.0020.00811.29
5.4.320.0050.02813.94
5.4.310.0070.02513.96
5.4.300.0070.02713.97
5.4.290.0080.02513.89
5.4.280.0030.02213.79
5.4.270.0050.01413.98
5.4.260.0040.03014.02
5.4.250.0070.01913.91
5.4.240.0020.02313.87
5.4.230.0020.02013.94
5.4.220.0060.02013.87
5.4.210.0070.02714.05
5.4.200.0070.03014.02
5.4.190.0110.02313.92
5.4.180.0030.03013.84
5.4.170.0100.02813.90
5.4.160.0060.02713.89
5.4.150.0050.02813.79
5.4.140.0080.02413.00
5.4.130.0080.02012.99
5.4.120.0060.03012.94
5.4.110.0060.02013.02
5.4.100.0100.01713.10
5.4.90.0070.02612.99
5.4.80.0050.02513.10
5.4.70.0100.02713.01
5.4.60.0080.02413.02
5.4.50.0080.02913.02
5.4.40.0080.02813.06
5.4.30.0060.02813.00
5.4.20.0070.03112.98
5.4.10.0070.02913.08
5.4.00.0090.02512.81
5.3.290.0040.02612.34
5.3.280.0060.01912.28
5.3.270.0050.02312.24
5.3.260.0070.02512.30
5.3.250.0030.03212.20
5.3.240.0040.03012.27
5.3.230.0060.02912.29
5.3.220.0060.02812.25
5.3.210.0070.02812.20
5.3.200.0070.02712.28
5.3.190.0080.02712.27
5.3.180.0070.02612.29
5.3.170.0070.02812.34
5.3.160.0050.02812.33
5.3.150.0040.01912.37
5.3.140.0050.02712.29
5.3.130.0060.03112.27
5.3.120.0060.02812.21
5.3.110.0040.03212.31
5.3.100.0090.02612.14
5.3.90.0070.02612.17
5.3.80.0060.02412.07
5.3.70.0040.01812.06
5.3.60.0070.02612.11
5.3.50.0040.02512.08
5.3.40.0030.02712.04
5.3.30.0020.02912.02
5.3.20.0050.02512.01
5.3.10.0050.02811.82
5.3.00.0080.01911.84
5.2.170.0110.02810.31
5.2.160.0070.02010.21
5.2.150.0020.03410.31
5.2.140.0070.02510.19
5.2.130.0050.03210.16
5.2.120.0060.03410.13
5.2.110.0090.01810.07
5.2.100.0040.03310.26
5.2.90.0070.02910.18
5.2.80.0040.03510.07
5.2.70.0050.0339.97
5.2.60.0080.02810.13
5.2.50.0070.02810.10
5.2.40.0060.03010.22
5.2.30.0030.0359.98
5.2.20.0030.03310.08
5.2.10.0050.0309.95
5.2.00.0070.0279.99
5.1.60.0070.0289.74
5.1.50.0040.0229.74
5.1.40.0070.0189.74
5.1.30.0030.0159.74
5.1.20.0040.0299.74
5.1.10.0060.0289.74
5.1.00.0040.0299.74
5.0.50.0060.0209.74
5.0.40.0030.0159.74
5.0.30.0030.0329.74
5.0.20.0080.0209.74
5.0.10.0030.0219.74
5.0.00.0040.0389.74
4.4.90.0070.0179.74
4.4.80.0000.0189.74
4.4.70.0030.0159.74
4.4.60.0070.0139.74
4.4.50.0020.0179.74
4.4.40.0000.0179.74
4.4.30.0050.0169.74
4.4.20.0030.0209.74
4.4.10.0020.0209.74
4.4.00.0060.0219.74
4.3.110.0020.0209.74
4.3.100.0020.0209.74
4.3.90.0040.0189.74
4.3.80.0020.0329.74
4.3.70.0030.0189.74
4.3.60.0000.0229.74
4.3.50.0020.0189.74
4.3.40.0020.0259.74
4.3.30.0030.0189.74
4.3.20.0040.0199.74
4.3.10.0050.0189.74
4.3.00.0050.0189.74

preferences:
117.52 ms | 401 KiB | 5 Q