3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo 123 + 123 ; echo "\n"; echo 0123 + 123 ; echo "\n"; echo "\n"; echo "123" + 123 ; echo "\n"; echo "0123" + 123 ; echo "\n"; echo " 123" + 123 ; echo "\n"; echo "123 " + 123 ; echo "\n"; echo 123 + "123" ; echo "\n"; echo 123 + "0123" ; echo "\n"; echo 123 + " 123" ; echo "\n"; echo 123 + "123 "; echo "\n"; echo "\n"; echo array(123) + 123; echo "\n"; echo 123 + array(123); echo "\n";
based on dfGOj
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.2 - 5.4.34
246 206 246 246 246 246 246 246 246 246 Fatal error: Unsupported operand types in /in/odduT on line 18
Process exited with code 255.
Output for 4.3.0 - 4.3.1
246 206 246 246 246 246 246 246 246 246 Fatal error: Unsupported operand types in /in/odduT on line 18