3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A {} $a = (object) null; var_dump($a + $a + $a);
based on 5s5pk
Output for 7.0.20, 7.1.5 - 7.2.0
Notice: Object of class stdClass could not be converted to int in /in/kPnQv on line 7 Notice: Object of class stdClass could not be converted to int in /in/kPnQv on line 7 int(3)
Output for 5.3.19 - 7.0.6, 7.1.0
Notice: Object of class stdClass could not be converted to int in /in/kPnQv on line 7 Notice: Object of class stdClass could not be converted to int in /in/kPnQv on line 7 Notice: Object of class stdClass could not be converted to int in /in/kPnQv on line 7 int(3)