3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = "test"; $obj = new stdclass(); var_dump($test[$obj+$obj]);
Output for 5.1.0 - 7.1.0
Notice: Object of class stdClass could not be converted to int in /in/2X9Eb on line 4 Notice: Object of class stdClass could not be converted to int in /in/2X9Eb on line 4 string(1) "s"
Output for 4.3.2 - 5.0.5
Fatal error: Unsupported operand types in /in/2X9Eb on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Unsupported operand types in /in/2X9Eb on line 4