3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variable1 = fopen("https://en.wikipedia.org/w/api.php?action=query&prop=pageimages&format=json&piprop=original&titles=Tomoyasu_Hotei", "r"); $variable2 = stream_get_contents($variable1); fclose($variable1); $variable3 = json_decode($variable2, true); $variable4 = $variable3["query"]["pages"]; echo "<pre>"; var_dump($variable4); echo "</pre>";
Output for git.master, git.master_jit
Warning: fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/eJXXI on line 3 Warning: fopen(): open_basedir restriction in effect. File(https://en.wikipedia.org/w/api.php?action=query&prop=pageimages&format=json&piprop=original&titles=Tomoyasu_Hotei) is not within the allowed path(s): (/tmp:/in:/etc) in /in/eJXXI on line 3 Warning: fopen(https://en.wikipedia.org/w/api.php?action=query&prop=pageimages&format=json&piprop=original&titles=Tomoyasu_Hotei): Failed to open stream: Operation not permitted in /in/eJXXI on line 3 Fatal error: Uncaught TypeError: stream_get_contents(): Argument #1 ($stream) must be of type resource, bool given in /in/eJXXI:4 Stack trace: #0 /in/eJXXI(4): stream_get_contents(false) #1 {main} thrown in /in/eJXXI on line 4
Process exited with code 255.
Output for rfc.property-hooks
Warning: fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/eJXXI on line 3 Warning: fopen(): open_basedir restriction in effect. File(https://en.wikipedia.org/w/api.php?action=query&prop=pageimages&format=json&piprop=original&titles=Tomoyasu_Hotei) is not within the allowed path(s): (/tmp:/in:/etc) in /in/eJXXI on line 3 Warning: fopen(https://en.wikipedia.org/w/api.php?action=query&prop=pageimages&format=json&piprop=original&titles=Tomoyasu_Hotei): Failed to open stream: Operation not permitted in /in/eJXXI on line 3 Fatal error: Uncaught TypeError: stream_get_contents(): Argument #1 ($stream) must be of type resource, false given in /in/eJXXI:4 Stack trace: #0 /in/eJXXI(4): stream_get_contents(false) #1 {main} thrown in /in/eJXXI 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:
58.64 ms | 402 KiB | 8 Q