3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://www.ietf.org/rfc/rfc2246.txt'); curl_setopt($ch, CURLOPT_NOBODY, true); $err = fopen('php://temp', 'rw+'); curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_CERTINFO, true); curl_setopt($ch, CURLOPT_STDERR, $err); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); //curl_setopt($ch, CURLOPT_SSLVERSION, 3); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2); curl_setopt($ch, CURLOPT_TIMEOUT, 4); echo '<pre>'; $result = curl_exec($ch); if (curl_errno($ch) != 0) { echo "<b>cURL Error (" . curl_errno($ch) . ")</b>: " . curl_error($ch) . "\n\n"; } $verify = curl_getinfo($ch, CURLINFO_SSL_VERIFYRESULT); echo "<b>SSL Verify</b>: {$verify}\n\n"; curl_close($ch); rewind($err); echo "<b>STDERR:</b>\n", htmlesc(stream_get_contents($err)), "\n"; fclose($err);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/tk5o9:2 Stack trace: #0 {main} thrown in /in/tk5o9 on line 2
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
34.89 ms | 401 KiB | 8 Q