3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = NULL; $aaa = 'aaa_one,aaa_two,aaa_three,aaa_four'; $bbb = 'bbb_one,bbb_two,bbb_three,bbb_four'; $ccc = 'ccc_one,ccc_two,ccc_three,ccc_four'; $data["AAA"] = explode(",", $aaa) ; $data["BBB"] = explode(",", $bbb) ; $data["CCC"] = explode(",", $ccc) ; foreach ($data["AAA"] as $values) { echo "$values \n"; } print("\n\n"); echo($data["BBB"][1]);print("\n\n"); print_r( $data );
Output for git.master, git.master_jit, rfc.property-hooks
aaa_one aaa_two aaa_three aaa_four bbb_two Array ( [AAA] => Array ( [0] => aaa_one [1] => aaa_two [2] => aaa_three [3] => aaa_four ) [BBB] => Array ( [0] => bbb_one [1] => bbb_two [2] => bbb_three [3] => bbb_four ) [CCC] => Array ( [0] => ccc_one [1] => ccc_two [2] => ccc_three [3] => ccc_four ) )

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