3v4l.org

run code in 300+ PHP versions simultaneously
<?php $art = "hotlingbling"; $api = "AIzaSyA78O-GXYfdXBw-LANN50mx4ny2MKEOFkg"; $art = urlencode($art); $imgWord = "https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=10&q={$art}&type=video&key={$api}"; $json = file_get_contents($imgWord); $data = json_decode($json, true); var_dump($json['items']);
Output for git.master, git.master_jit
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/S2GqH on line 8 Warning: file_get_contents(): open_basedir restriction in effect. File(https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=10&q=hotlingbling&type=video&key=AIzaSyA78O-GXYfdXBw-LANN50mx4ny2MKEOFkg) is not within the allowed path(s): (/tmp:/in:/etc) in /in/S2GqH on line 8 Warning: file_get_contents(https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=10&q=hotlingbling&type=video&key=AIzaSyA78O-GXYfdXBw-LANN50mx4ny2MKEOFkg): Failed to open stream: Operation not permitted in /in/S2GqH on line 8 Warning: Trying to access array offset on value of type bool in /in/S2GqH on line 10 NULL
Output for rfc.property-hooks
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/S2GqH on line 8 Warning: file_get_contents(): open_basedir restriction in effect. File(https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=10&q=hotlingbling&type=video&key=AIzaSyA78O-GXYfdXBw-LANN50mx4ny2MKEOFkg) is not within the allowed path(s): (/tmp:/in:/etc) in /in/S2GqH on line 8 Warning: file_get_contents(https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=10&q=hotlingbling&type=video&key=AIzaSyA78O-GXYfdXBw-LANN50mx4ny2MKEOFkg): Failed to open stream: Operation not permitted in /in/S2GqH on line 8 Warning: Trying to access array offset on false in /in/S2GqH on line 10 NULL

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