3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = file_get_contents('https://dictionary.yandex.net/api/v1/dicservice.json/lookup?key=dict.1.1.20160318T202458Z.1f096f4217403a0a.ff0eac3843a0da2d7333e9f76335c3fd834dcf6c&lang=ru-en&text=text'); $jsonData = json_decode($url); $rest = $jsonData->def[0]; foreach ($rest as $v1) { echo "<dl>"; foreach ($v1 as $key => $value) { echo "<dt>$key</dt><dd>$value</dd>"; } }
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/c7br1 on line 2 Warning: file_get_contents(): open_basedir restriction in effect. File(https://dictionary.yandex.net/api/v1/dicservice.json/lookup?key=dict.1.1.20160318T202458Z.1f096f4217403a0a.ff0eac3843a0da2d7333e9f76335c3fd834dcf6c&lang=ru-en&text=text) is not within the allowed path(s): (/tmp:/in:/etc) in /in/c7br1 on line 2 Warning: file_get_contents(https://dictionary.yandex.net/api/v1/dicservice.json/lookup?key=dict.1.1.20160318T202458Z.1f096f4217403a0a.ff0eac3843a0da2d7333e9f76335c3fd834dcf6c&lang=ru-en&text=text): Failed to open stream: Operation not permitted in /in/c7br1 on line 2 Warning: Attempt to read property "def" on null in /in/c7br1 on line 4 Warning: Trying to access array offset on value of type null in /in/c7br1 on line 4 Warning: foreach() argument must be of type array|object, null given in /in/c7br1 on line 5
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/c7br1 on line 2 Warning: file_get_contents(): open_basedir restriction in effect. File(https://dictionary.yandex.net/api/v1/dicservice.json/lookup?key=dict.1.1.20160318T202458Z.1f096f4217403a0a.ff0eac3843a0da2d7333e9f76335c3fd834dcf6c&lang=ru-en&text=text) is not within the allowed path(s): (/tmp:/in:/etc) in /in/c7br1 on line 2 Warning: file_get_contents(https://dictionary.yandex.net/api/v1/dicservice.json/lookup?key=dict.1.1.20160318T202458Z.1f096f4217403a0a.ff0eac3843a0da2d7333e9f76335c3fd834dcf6c&lang=ru-en&text=text): Failed to open stream: Operation not permitted in /in/c7br1 on line 2 Warning: Attempt to read property "def" on null in /in/c7br1 on line 4 Warning: Trying to access array offset on null in /in/c7br1 on line 4 Warning: foreach() argument must be of type array|object, null given in /in/c7br1 on line 5

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:
50.24 ms | 403 KiB | 8 Q