3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getTwitterStatus($userid){ $url = "https://api.twitter.com/1/statuses/user_timeline/$userid.xml?count=1&include_rts=1callback=?"; $xml = simplexml_load_file($url) or die("could not connect"); foreach($xml->status as $status){ $text = $status->text; } echo $text; } // USAGE getTwitterStatus("juul_van_bracht");
Output for git.master, git.master_jit, rfc.property-hooks
Warning: simplexml_load_file(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/Jr44A on line 5 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://api.twitter.com/1/statuses/user_timeline/juul_van_bracht.xml?count=1&include_rts=1callback=?" in /in/Jr44A on line 5 could not connect

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:
39.19 ms | 401 KiB | 8 Q