3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { public $bar = +array(1, 2, 3); } $f = new foo; var_dump($f->bar);
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined property: Foo::$bar in /in/X4BMW on line 9 NULL
Output for 5.3.0 - 5.4.17
Fatal error: Unsupported operand types in /in/KpkgF on line 4
Process exited with code 255.