3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
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)

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.1 ms | 402 KiB | 8 Q