3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $rankingBtCategoryId= array( 1 => 14, 4 => 15, 5 => 108, 6 => 16, 7 => 17, 8 => 101, 9 => 12, 10 => 13, ); $specialistRankingBtCategoryMappingTargetList= [ 101, 102, 103, 104, 105, 106, 107, 108, 12, 13, 14, 15, 16, 17 ]; $aaa = array_diff($rankingBtCategoryId,$specialistRankingBtCategoryMappingTargetList); var_dump($aaa);
based on bQOJR
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
array(0) { }