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")); for($i=0;$i<sizeof($array);$i++) { foreach($array[$i] as $key=>$value) { if($key == "source") if($array[$i][$key] == $arrays[$j][$key]) { $array[$i]["value"]=$array[$i]["value"] + 1; break; } } }
Output for 5.5.0 - 7.1.0
Notice: Undefined variable: arrays in /in/ZnBic on line 10 Notice: Undefined variable: j in /in/ZnBic on line 10 Notice: Undefined variable: arrays in /in/ZnBic on line 10 Notice: Undefined variable: j in /in/ZnBic on line 10 Notice: Undefined variable: arrays in /in/ZnBic on line 10 Notice: Undefined variable: j in /in/ZnBic on line 10
Output for 4.3.0 - 5.4.45