3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch = curl_init(); $hostname = 'graph.facebook.com'; $url = "https://{$hostname}/163608693694254"; $cert = realpath(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'class'.DIRECTORY_SEPARATOR.'facebook-php-sdk-master'.DIRECTORY_SEPARATOR.'src'.DIRECTORY_SEPARATOR.'fb_ca_chain_bundle.crt'); echo "IP address: ".gethostbyname($hostname)."<br/>"; echo "Certificate path: {$cert}<br/>\n"; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); curl_setopt($ch, CURLOPT_CAINFO, $cert); curl_setopt($ch, CURLOPT_SSLVERSION,3); curl_setopt($ch, CURLINFO_HEADER_OUT, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_CERTINFO, true); $result = curl_exec($ch); echo "cURL Error: (".curl_errno($ch).") ".curl_error($ch)."<br/>\n"; echo "<pre>".print_r(curl_getinfo($ch), true)."</pre><br/>\n"; echo "<pre>".htmlspecialchars($result)."</pre>"; curl_close($ch); ?>

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.40.0120.00318.71
8.3.30.0040.01119.14
8.3.20.0080.00020.16
8.3.10.0040.00421.90
8.3.00.0040.00422.57
8.2.170.0070.00722.96
8.2.160.0100.00319.12
8.2.150.0150.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00319.26
8.2.110.0060.00321.98
8.2.100.0000.01317.78
8.2.90.0040.00417.63
8.2.80.0000.00818.61
8.2.70.0060.00317.50
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0000.00818.22
8.2.30.0000.00718.07
8.2.20.0000.00717.84
8.2.10.0040.00417.76
8.2.00.0070.00017.68
8.1.270.0030.00622.26
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.96
8.1.230.0110.00019.29
8.1.220.0000.00817.79
8.1.210.0060.00318.77
8.1.200.0000.00817.35
8.1.190.0080.00017.54
8.1.180.0050.00318.68
8.1.170.0050.00518.56
8.1.160.0070.00022.21
8.1.150.0040.00418.48
8.1.140.0080.00017.29
8.1.130.0000.00817.87
8.1.120.0030.00317.41
8.1.110.0060.00317.43
8.1.100.0000.00817.39
8.1.90.0040.00417.35
8.1.80.0030.00317.27
8.1.70.0030.00317.37
8.1.60.0060.00317.48
8.1.50.0040.00417.41
8.1.40.0050.00217.41
8.1.30.0000.00817.52
8.1.20.0030.00617.64
8.1.10.0040.00417.54
8.1.00.0030.00617.50
8.0.300.0050.00218.77
8.0.290.0050.00316.75
8.0.280.0000.00718.38
8.0.270.0030.00317.18
8.0.260.0000.00716.94
8.0.250.0050.00317.04
8.0.240.0030.00317.01
8.0.230.0070.00016.96
8.0.220.0000.00716.96
8.0.210.0050.00316.82
8.0.200.0030.00316.98
8.0.190.0040.00417.03
8.0.180.0040.00416.93
8.0.170.0000.00716.95
8.0.160.0000.00816.93
8.0.150.0000.00816.78
8.0.140.0000.00816.95
8.0.130.0030.00313.31
8.0.120.0020.00615.14
8.0.110.0020.00515.04
8.0.100.0060.00215.16
8.0.90.0060.00215.20
8.0.80.0050.00815.13
8.0.70.0020.00515.05
8.0.60.0000.00715.12
8.0.50.0080.00015.07
8.0.30.0060.00815.90
8.0.20.0080.00816.09
8.0.10.0040.00315.23
8.0.00.0070.00715.67
7.4.330.0000.00515.00
7.4.320.0030.00316.43
7.4.300.0040.00416.64
7.4.290.0000.00716.59
7.4.280.0030.00316.48
7.4.270.0070.00016.43
7.4.260.0000.00716.39
7.4.250.0030.00314.87
7.4.240.0050.00215.40
7.4.230.0010.00514.80
7.4.220.0100.00514.91
7.4.210.0070.00615.71
7.4.200.0030.00314.87
7.4.190.0030.00314.96
7.4.180.0030.00313.34
7.4.160.0080.00314.82
7.4.150.0050.01015.36
7.4.140.0090.00516.32
7.4.130.0060.00715.51
7.4.120.0090.00515.44
7.4.110.0110.00514.88
7.4.100.0070.00514.86
7.4.90.0090.00714.77
7.4.80.0050.00716.33
7.4.70.0050.00714.82
7.4.60.0030.00714.84
7.4.50.0050.00014.81
7.4.40.0040.00417.97
7.4.30.0110.00314.97
7.4.20.0000.00713.21
7.4.10.0060.00413.97
7.4.00.0080.00514.34
7.3.330.0030.00313.16
7.3.320.0050.00013.17
7.3.310.0030.00314.75
7.3.300.0040.00314.80
7.3.290.0040.00614.75
7.3.280.0080.00815.52
7.3.270.0070.00615.29
7.3.260.0070.00614.86
7.3.250.0110.00315.39
7.3.240.0020.01014.82
7.3.230.0100.00214.75
7.3.220.0070.00013.09
7.3.210.0090.00414.82
7.3.200.0090.00316.24
7.3.190.0020.01014.69
7.3.180.0080.00314.80
7.3.170.0050.00914.77
7.3.160.0040.00714.73
7.3.150.0030.00313.13
7.3.140.0030.00313.19
7.3.130.0040.00813.82
7.3.120.0010.01214.35
7.3.110.0020.01214.07
7.3.100.0040.00814.29
7.3.90.0070.00614.28
7.3.80.0020.00814.28
7.3.70.0060.00514.21
7.3.60.0040.00714.29
7.3.50.0070.00414.24
7.3.40.0040.00614.34
7.3.30.0060.00614.30
7.3.20.0020.00815.95
7.3.10.0050.00615.92
7.3.00.0060.00415.97
7.2.340.0110.00213.25
7.2.330.0130.00414.72
7.2.320.0120.00514.77
7.2.310.0120.00314.82
7.2.300.0100.00614.82
7.2.290.0080.00814.71
7.2.280.0150.00012.92
7.2.270.0130.00013.13
7.2.260.0100.00513.92
7.2.250.0080.00814.05
7.2.240.0100.00314.54
7.2.230.0090.00514.33
7.2.220.0050.00914.30
7.2.210.0070.00714.36
7.2.200.0090.00714.37
7.2.190.0070.00614.29
7.2.180.0060.00914.23
7.2.170.0040.00914.38
7.2.160.0040.01014.21
7.2.150.0090.00616.06
7.2.140.0070.00616.07
7.2.130.0070.00916.28
7.2.120.0060.01116.22
7.2.110.0060.01016.13
7.2.100.0030.00916.22
7.2.90.0100.00316.15
7.2.80.0100.00516.15
7.2.70.0100.00616.28
7.2.60.0080.00516.33
7.2.50.0120.00416.18
7.2.40.0080.00816.18
7.2.30.0080.00616.20
7.2.20.0050.00816.09
7.2.10.0080.00716.17
7.2.00.0060.00816.22
7.1.330.0050.00815.03
7.1.320.0050.00915.08
7.1.310.0070.00515.10
7.1.300.0050.00815.16
7.1.290.0040.00815.02
7.1.280.0060.00615.06
7.1.270.0070.00714.99
7.1.260.0060.00915.07
7.1.250.0070.00814.97
7.1.240.0110.00514.85
7.1.230.0080.00614.84
7.1.220.0060.00714.88
7.1.210.0060.00514.76
7.1.200.0050.00615.04
7.1.190.0090.00314.78
7.1.180.0080.00614.83
7.1.170.0060.00714.75
7.1.160.0090.00514.74
7.1.150.0050.01014.78
7.1.140.0100.00314.84
7.1.130.0040.00914.74
7.1.120.0100.00414.76
7.1.110.0080.00214.89
7.1.100.0070.00514.79
7.1.90.0040.00814.68
7.1.80.0080.00614.88
7.1.70.0070.00615.34
7.1.60.0080.00716.59
7.1.50.0080.00615.54
7.1.40.0100.00314.83
7.1.30.0080.00314.69
7.1.20.0050.00714.81
7.1.10.0110.00114.82
7.1.00.0080.02917.35
7.0.330.0060.00814.63
7.0.320.0080.00514.49
7.0.310.0060.00814.50
7.0.300.0100.00214.59
7.0.290.0030.00914.49
7.0.280.0090.00314.43
7.0.270.0070.00814.67
7.0.260.0090.00414.50
7.0.250.0030.00714.78
7.0.240.0090.00414.65
7.0.230.0060.00714.62
7.0.220.0050.00814.52
7.0.210.0090.00314.58
7.0.200.0050.00715.28
7.0.190.0060.00614.67
7.0.180.0030.01114.71
7.0.170.0090.00414.59
7.0.160.0050.00714.71
7.0.150.0080.00614.60
7.0.140.0060.02717.12
7.0.130.0080.00514.72
7.0.120.0100.00514.55
7.0.110.0070.00714.71
7.0.100.0060.00814.57
7.0.90.0060.00614.74
7.0.80.0080.00614.58
7.0.70.0080.00514.66
7.0.60.0080.02716.49
7.0.50.0080.02815.74
7.0.40.0070.02815.88
7.0.30.0170.02715.85
7.0.20.0160.02715.79
7.0.10.0070.03415.80
7.0.00.0060.02615.61
5.6.400.0100.00513.40
5.6.390.0070.00713.19
5.6.380.0050.00713.27
5.6.370.0080.00513.31
5.6.360.0050.00613.29
5.6.350.0080.00713.19
5.6.340.0070.00513.18
5.6.330.0070.00513.16
5.6.320.0020.00913.22
5.6.310.0020.00913.35
5.6.300.0050.00413.39
5.6.290.0050.00813.40
5.6.280.0080.02715.81
5.6.270.0030.00913.26
5.6.260.0060.00613.36
5.6.250.0050.00713.33
5.6.240.0060.00813.20
5.6.230.0050.00913.35
5.6.220.0060.00413.15
5.6.210.0090.02615.63
5.6.200.0080.02515.03
5.6.190.0090.03215.66
5.6.180.0120.02515.83
5.6.170.0170.03015.80
5.6.160.0050.01815.56
5.6.150.0060.01914.92
5.6.140.0060.03014.99
5.6.130.0070.02915.05
5.6.120.0040.02315.87
5.6.110.0100.03115.75
5.6.100.0090.02815.81
5.6.90.0040.02215.93
5.6.80.0050.02715.78
5.6.70.0040.00713.21
5.6.60.0050.00713.27
5.6.50.0030.00913.06
5.6.40.0040.00913.21
5.6.30.0080.00613.17
5.6.20.0080.00513.03
5.6.10.0050.00513.34
5.6.00.0040.01013.29
5.5.380.0090.00513.23
5.5.370.0020.01213.13
5.5.360.0100.00412.98
5.5.350.1290.01315.59
5.5.340.0100.03014.70
5.5.330.0070.02015.58
5.5.320.0120.01915.61
5.5.310.0130.03015.42
5.5.300.0070.03214.70
5.5.290.0080.02314.84
5.5.280.0110.02115.80
5.5.270.0040.01915.67
5.5.260.0060.03515.74
5.5.250.0160.02115.81
5.5.240.0120.01915.59
5.5.230.0090.00313.22
5.5.220.0050.00713.13
5.5.210.0050.00813.19
5.5.200.0050.00713.02
5.5.190.0040.00713.26
5.5.180.0090.00413.12
5.5.170.0090.00413.10
5.5.160.0050.00913.17
5.5.150.0070.00712.91
5.5.140.0110.00213.09
5.5.130.0070.00413.02
5.5.120.0080.00413.14
5.5.110.0100.00312.92
5.5.100.0080.00213.15
5.5.90.0080.00213.13
5.5.80.0060.00713.23
5.5.70.0090.00413.22
5.5.60.0060.00712.93
5.5.50.0070.00513.14
5.5.40.0050.00913.00
5.5.30.0090.00313.24
5.5.20.0030.01013.12
5.5.10.0080.00613.04
5.5.00.0030.00813.05
5.4.450.0130.01614.83
5.4.440.0130.02814.70
5.4.430.0100.01914.79
5.4.420.0100.01714.75
5.4.410.0130.01914.74
5.4.400.0150.02214.58
5.4.390.0140.02614.66
5.4.380.0110.02914.62
5.4.370.0110.01514.67
5.4.360.0130.01814.73
5.4.350.0110.03014.62
5.4.340.0140.02114.64
5.4.330.0060.00512.47
5.4.320.0100.02914.60
5.4.310.0150.02314.69
5.4.300.0130.01714.68
5.4.290.0130.02314.68
5.4.280.0110.01714.77
5.4.270.0140.02614.62
5.4.260.0200.02214.66
5.4.250.0110.01914.65
5.4.240.0080.02114.59
5.4.230.0110.01614.45
5.4.220.0150.01614.49
5.4.210.0140.02914.66
5.4.200.0140.02014.61
5.4.190.0150.02214.56
5.4.180.0170.01714.59
5.4.170.0110.02514.61
5.4.160.0120.02014.59
5.4.150.0170.01714.50
5.4.140.0120.02013.73
5.4.130.0140.02613.68
5.4.120.0120.02513.76
5.4.110.0130.01713.75
5.4.100.0110.02013.73
5.4.90.0170.01313.79
5.4.80.0100.01613.79
5.4.70.0130.01513.75
5.4.60.0160.02313.78
5.4.50.0150.01613.75
5.4.40.0170.01913.71
5.4.30.0150.01913.67
5.4.20.0100.02413.81
5.4.10.0170.02213.79
5.4.00.0140.02313.62
5.3.290.0200.03513.80
5.3.280.0180.03113.70
5.3.270.0160.02813.62
5.3.260.0180.03813.76
5.3.250.0190.02713.63
5.3.240.0200.03713.51
5.3.230.0160.03113.64
5.3.220.0190.03613.58
5.3.210.0200.03313.56
5.3.200.0150.02613.59
5.3.190.0180.01813.67
5.3.180.0200.02413.63
5.3.170.0160.02013.69
5.3.160.0170.03413.64
5.3.150.0200.03513.72
5.3.140.0190.03813.53
5.3.130.0200.03513.60
5.3.120.0170.03513.54
5.3.110.0130.04213.61
5.3.100.0180.03813.37
5.3.90.0150.02913.36
5.3.80.0150.03913.31
5.3.70.0190.02413.24
5.3.60.0170.02013.32
5.3.50.0200.03713.29
5.3.40.0200.02413.38
5.3.30.0160.02313.25
5.3.20.0160.02013.05
5.3.10.0140.02013.09
5.3.00.0190.03513.06
5.2.170.0140.02911.57
5.2.160.0140.02311.54
5.2.150.0160.02011.62
5.2.140.0190.02511.51
5.2.130.0130.01711.41
5.2.120.0150.01911.48
5.2.110.0140.01711.39
5.2.100.0130.02011.34
5.2.90.0160.02611.46
5.2.80.0160.02011.41
5.2.70.0180.01511.46
5.2.60.0160.01811.18
5.2.50.0130.02011.45
5.2.40.0140.01611.28
5.2.30.0110.01811.22
5.2.20.0160.02911.27
5.2.10.0110.01511.31
5.2.00.0080.01911.07
5.1.60.0120.01210.44
5.1.50.0080.01510.34
5.1.40.0130.01110.44
5.1.30.0100.01510.71
5.1.20.0090.01510.65
5.1.10.0100.01510.53
5.1.00.0070.01610.49
5.0.50.0060.01010.17
5.0.40.0070.01110.17
5.0.30.0040.02310.17
5.0.20.0050.01310.17
5.0.10.0070.01310.17
5.0.00.0080.01710.17
4.4.90.0100.01310.17
4.4.80.0080.01710.17
4.4.70.0050.01010.17
4.4.60.0080.01310.17
4.4.50.0030.01510.17
4.4.40.0020.01710.17
4.4.30.0050.00810.17
4.4.20.0060.00710.17
4.4.10.0040.00810.17
4.4.00.0040.01510.17
4.3.110.0020.01310.17
4.3.100.0020.01210.17
4.3.90.0070.00510.17
4.3.80.0040.01310.17
4.3.70.0020.01010.17
4.3.60.0050.00710.17
4.3.50.0000.01210.17
4.3.40.0050.01210.17
4.3.30.0010.00910.17
4.3.20.0050.00710.17
4.3.10.0020.00810.17
4.3.00.0020.00810.17

preferences:
42.29 ms | 400 KiB | 5 Q