3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { public $a; protected $b = 'hello'; public $c = 'world'; } $a = new A; var_dump(isset($a->a)); var_dump(isset($a->b)); var_dump(isset($c = $a->c)); var_dump(get_class_methods($a));
Output for hhvm-3.10.0 - 3.12.0
bool(false) bool(false) bool(true) array(0) { }
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected '=', expecting ',' or ')' in /in/KApQF on line 14
Process exited with code 255.