3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $variable1 = 2; $variable2="6"; echo $variable1+$variable2; //echoes 8 echo "<br/>"; echo $variable1.6;
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected '.6' (T_DNUMBER), expecting ',' or ';' in /in/18JEY on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_DNUMBER, expecting ',' or ';' in /in/18JEY on line 6
Process exited with code 255.