3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr_database = array("V1", "V2", "V5", "V6", "V7", "V10"); $arr_custom = array("V1", "V2", "V3", "V4", "V5", "V6", "V7", "V8", "V9", "V10"); $arr_output = array_diff($arr_custom, $arr_database); print_r($arr_output);
Output for 4.3.0 - 7.1.0
Array ( [2] => V3 [3] => V4 [7] => V8 [8] => V9 )