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.3.0 - 7.3.1
Notice: Object of class stdClass could not be converted to number in /in/kPnQv on line 7 Notice: Object of class stdClass could not be converted to number in /in/kPnQv on line 7 int(3)
Output for 7.0.17 - 7.0.33, 7.1.3 - 7.2.13
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.16, 7.1.0 - 7.1.2
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)