3v4l.org

run code in 300+ PHP versions simultaneously
<?php function latestTweet($nick) { $tweet = simplexml_load_file("http://api.twitter.com/1/statuses/user_timeline/{$nick}.xml"); echo $tweet->status[0]->text; } latestTweet('ZXeDroid');
Output for git.master, git.master_jit
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo for api.twitter.com failed: System error in /in/15r1a on line 3 Warning: simplexml_load_file(http://api.twitter.com/1/statuses/user_timeline/ZXeDroid.xml): Failed to open stream: php_network_getaddresses: getaddrinfo for api.twitter.com failed: System error in /in/15r1a on line 3 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://api.twitter.com/1/statuses/user_timeline/ZXeDroid.xml" in /in/15r1a on line 3 Warning: Attempt to read property "status" on bool in /in/15r1a on line 4 Warning: Trying to access array offset on value of type null in /in/15r1a on line 4 Warning: Attempt to read property "text" on null in /in/15r1a on line 4
Output for rfc.property-hooks
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo for api.twitter.com failed: System error in /in/15r1a on line 3 Warning: simplexml_load_file(http://api.twitter.com/1/statuses/user_timeline/ZXeDroid.xml): Failed to open stream: php_network_getaddresses: getaddrinfo for api.twitter.com failed: System error in /in/15r1a on line 3 Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://api.twitter.com/1/statuses/user_timeline/ZXeDroid.xml" in /in/15r1a on line 3 Warning: Attempt to read property "status" on false in /in/15r1a on line 4 Warning: Trying to access array offset on null in /in/15r1a on line 4 Warning: Attempt to read property "text" on null in /in/15r1a on line 4

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:
54.6 ms | 402 KiB | 8 Q