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[] = new Wp_Term(); var_dump(array_search('Patient education', array_column(json_decode(json_encode($array), true), 'name')) === false);
Output for 5.5.23 - 7.1.0
bool(false)