3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $obj1 = (object)array('foo' => 1); $obj2 = 0 ?: $obj1; echo (int)($obj1 === $obj2);
Output for 5.3.4 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
1
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.2.15 - 5.2.17
Parse error: syntax error, unexpected ':' in /in/Ka4aW on line 5
Process exited with code 255.