3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public $B = 'test'; } $c = new A(); echo $c<-$B;
based on 3HBC0
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.21.3, 7.1.0 - 7.3.0alpha1
Notice: Undefined variable: B in /in/6aQQi on line 9 Notice: Object of class A could not be converted to int in /in/6aQQi on line 9
Output for hhvm-3.22.0
Notice: Undefined variable: B in /in/6aQQi on line -1 Notice: Object of class A could not be converted to int in /in/6aQQi on line -1