3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $newarray = ('489289', '536516', '332833', '536516'); $rockin = array( '489289' => array('536516','value1'), '332833' => array('536516'), ); foreach ($rockin as $array) { foreach ($array as $value) { if (in_array($value, $newarray) { array_diff($newarray, $value)); break; } } } var_dump($newarray);
Output for 5.3.0 - 5.4.19
Parse error: syntax error, unexpected ',' in /in/faGUr on line 3
Process exited with code 255.