3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class test { public $value = 0; function test() { $this->value = 1; } function __construct() { $this->value = 2; } } $object = new test(); echo $object->value;
Output for 7.1.6
2