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'); $page = "FR: Modopops CN: Doraemons TR: Shebnem, Sukelaci NL: Lemodile"; // print("<b>Origial 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
Array ( [FR] => Array ( [0] => [1] => Modopops ) [CN] => Array ( [0] => [1] => Doraemons ) [TR] => Array ( [0] => [1] => Shebnem, [2] => Sukelaci ) [NL] => Array ( [0] => [1] => Lemodile ) )

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:
45.67 ms | 401 KiB | 8 Q