3v4l.org

run code in 300+ PHP versions simultaneously
<?php $modList = array(); $page = file_get_contents('http://neophyte.us/Atelier801/Transformice/API/RAW%20Online%20Moderators.php'); print("<b>Original input:</b> $page<br/><br/>"); $string = explode("\n", $page); foreach($string as $key => $communities) { $community = explode(":", $communities)[0]; $mods = explode(":", $communities)[1]; $modList[$community] = explode(" ", $mods); print_r($modList); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for neophyte.us failed: System error in /in/thC2E on line 4 Warning: file_get_contents(http://neophyte.us/Atelier801/Transformice/API/RAW%20Online%20Moderators.php): Failed to open stream: php_network_getaddresses: getaddrinfo for neophyte.us failed: System error in /in/thC2E on line 4 <b>Original input:</b> <br/><br/> Warning: Undefined array key 1 in /in/thC2E on line 11 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/thC2E on line 12 Array ( [] => Array ( [0] => ) )

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