3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $mandatoryFields = ['a', 'b', 'c']; $checkIfMandatoryFieldsAreMissing = function($mandatoryField){ return false; }; $checkedMandatoryFields = array_map($checkIfMandatoryFieldsAreMissing, $mandatoryFields); var_dump($checkedMandatoryFields);
based on VKNnE
Output for 5.6.0 - 7.3.0beta1
array(3) { [0]=> bool(false) [1]=> bool(false) [2]=> bool(false) }