3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(Array('b','d'), Array('c','a'), Array('b','d'), Array('a','d'), Array('c'), Array('c'), Array('a','d','e'), Array('d','b') ); $occur = array(); foreach ($array as $item) { foreach ($item as $k => $v) { $occur["$k == $v"]++; } } print_r($occur);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "0 == b" in /in/P1KpC on line 14 Warning: Undefined array key "1 == d" in /in/P1KpC on line 14 Warning: Undefined array key "0 == c" in /in/P1KpC on line 14 Warning: Undefined array key "1 == a" in /in/P1KpC on line 14 Warning: Undefined array key "0 == a" in /in/P1KpC on line 14 Warning: Undefined array key "2 == e" in /in/P1KpC on line 14 Warning: Undefined array key "0 == d" in /in/P1KpC on line 14 Warning: Undefined array key "1 == b" in /in/P1KpC on line 14 Array ( [0 == b] => 2 [1 == d] => 4 [0 == c] => 3 [1 == a] => 1 [0 == a] => 2 [2 == e] => 1 [0 == d] => 1 [1 == b] => 1 )

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