3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.27, 5.4.0 - 5.4.22
Parse error: syntax error, unexpected ':' in /in/5rkoN on line 14
Process exited with code 255.

preferences:
171.34 ms | 1395 KiB | 58 Q