run code in 200+ php & hhvm versions
Bugs & Features
<?php class Example { protected $_data = [ "foo" => "bar", "baz" => "crazy" ]; public function __get( $key ) { return $this->_data[ $key ]; } } $e = new Example(); $what_I_expect = ( !empty( $e->foo ) ) ? "It exists!" : "Why u no exist?!"; var_dump( $what_I_expect );

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Array change keys
string(16) "Why u no exist?!"
Output for Lexical anon
string(16) "Why u no exist?!"
Output for Typed properties
string(16) "Why u no exist?!"

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