3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = file_get_contents("http://gdata.youtube.com/feeds/api/users/Google?alt=json"); $data = json_decode($json, true); echo 'Channel Views: ' . $data['entry']['yt$statistics']['viewCount'];
Output for git.master, git.master_jit
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for gdata.youtube.com failed: System error in /in/eK5TZ on line 2 Warning: file_get_contents(http://gdata.youtube.com/feeds/api/users/Google?alt=json): Failed to open stream: php_network_getaddresses: getaddrinfo for gdata.youtube.com failed: System error in /in/eK5TZ on line 2 Warning: Trying to access array offset on value of type null in /in/eK5TZ on line 4 Warning: Trying to access array offset on value of type null in /in/eK5TZ on line 4 Warning: Trying to access array offset on value of type null in /in/eK5TZ on line 4 Channel Views:
Output for rfc.property-hooks
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for gdata.youtube.com failed: System error in /in/eK5TZ on line 2 Warning: file_get_contents(http://gdata.youtube.com/feeds/api/users/Google?alt=json): Failed to open stream: php_network_getaddresses: getaddrinfo for gdata.youtube.com failed: System error in /in/eK5TZ on line 2 Warning: Trying to access array offset on null in /in/eK5TZ on line 4 Warning: Trying to access array offset on null in /in/eK5TZ on line 4 Warning: Trying to access array offset on null in /in/eK5TZ on line 4 Channel Views:

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