3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array(array("source"=>"123","value"=>"1"),array("source"=>"567","value"=>"1"),array("source"=>"123","value"=>"1")); $arrays = array_unique($array); for($i=0;$i<sizeof($array);$i++) { foreach($array[$i] as $key=>$value) { if($array[$i][$key] == $arrays[$j][$key]) { $array[$i]["value"]=$array[$i]["value"] + 1; break; } } }
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/LJDJA on line 3 Notice: Array to string conversion in /in/LJDJA on line 3 Notice: Array to string conversion in /in/LJDJA on line 3 Notice: Array to string conversion in /in/LJDJA on line 3 Notice: Array to string conversion in /in/LJDJA on line 3 Notice: Array to string conversion in /in/LJDJA on line 3 Notice: Array to string conversion in /in/LJDJA on line 3 Notice: Array to string conversion in /in/LJDJA on line 3 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10
Output for 5.3.0 - 5.3.29
Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10 Notice: Undefined variable: j in /in/LJDJA on line 10 Notice: Undefined index: in /in/LJDJA on line 10