3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $predefined=array(array("a","s"),array("b","s"), array("c","s"), array("e","s")); $return_arr=array(array("b","s"),array("c","s")); foreach($predefined as &$v) { $duplicate = false; foreach($return_arr as &$m) { if ($v['t'] === $m['t'] && $v['b'] !== $m['b']) $duplicate = true; } if($duplicate === true) $tmpArray[] = $m; if($duplicate === false) $tmpArray[] = $v; }: print_r($ids);
Output for 5.3.0 - 5.4.22
Parse error: syntax error, unexpected ':' in /in/5rkoN on line 14
Process exited with code 255.