3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://vnexpress.net/tin-tuc/phap-luat/15-canh-sat-bi-bat-giu-tai-my-duc-duoc-tha-tu-do-3571959.html'; echo $url."\n"; $ch = curl_init(); curl_setopt($ch,CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,5); //timeout in seconds curl_setopt($ch, CURLOPT_TIMEOUT, 5); //timeout in seconds curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $result = curl_exec($ch); if(curl_exec($ch) === false) { echo 'Curl error: ' . curl_error($ch); } else { var_dump($result); }
Output for git.master, git.master_jit, rfc.property-hooks
http://vnexpress.net/tin-tuc/phap-luat/15-canh-sat-bi-bat-giu-tai-my-duc-duoc-tha-tu-do-3571959.html Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/tvj8Z:4 Stack trace: #0 {main} thrown in /in/tvj8Z on line 4
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:
47.73 ms | 401 KiB | 8 Q