3v4l.org

run code in 300+ PHP versions simultaneously
<?php class WP_Term { public $data = array(); } $wp_term = new WP_Term( new stdClass() ); echo 'Testing if the $data dynamic property is accessible when iterating the WP_Term\'s object properties.' . PHP_EOL; foreach ( $wp_term as $property => $value ) { echo "Key: $property" . PHP_EOL; } echo PHP_EOL; echo 'Testing if the $data dynamic property is accessible when calling WP_Term::get_object_vars()' . PHP_EOL; var_dump( get_object_vars( $wp_term ) );
Output for git.master, git.master_jit, rfc.property-hooks
Testing if the $data dynamic property is accessible when iterating the WP_Term's object properties. Key: data Testing if the $data dynamic property is accessible when calling WP_Term::get_object_vars() array(1) { ["data"]=> array(0) { } }

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:
60.3 ms | 406 KiB | 5 Q