3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class WP_Term { public $term_id = 826; public $name = 'Patient education'; public $slug = 'patient-education'; public $term_group = 0; public $term_taxonomy_id = 826; public $taxonomy = 'product_category'; public $description = ''; public $parent = 0; public $count = 3; public $filter = 'raw'; } $array = array(); $array[] = (array)new Wp_Term(); var_dump($array); var_dump(array_search('Patient education', array_column($array, 'name')) === false);
Output for 5.6.0
array(1) { [0]=> array(10) { ["term_id"]=> int(826) ["name"]=> string(17) "Patient education" ["slug"]=> string(17) "patient-education" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(826) ["taxonomy"]=> string(16) "product_category" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(3) ["filter"]=> string(3) "raw" } } bool(false)