3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class zyf{ public $a=6; public $b; function zyf(){ echo $this->a; //可以输出 6 如果替换为echo $a ,将不显示任何结果,因为没有具体对象 } } $xin = new zyf(); ?>

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

Output for Typed properties v2
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; zyf has a deprecated constructor in /in/7VAbN on line 2 6
Output for Array change keys
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; zyf has a deprecated constructor in /in/7VAbN on line 2 6
Output for Lexical anon
6

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