3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variable1 = 2; $variable2="6"; echo $variable1+$variable2; //echoes 8 echo $variable1."6"; echo "<br/>": echo $variable1 . $variable2;
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.28, 5.5.0 - 5.5.12
Parse error: syntax error, unexpected ':', expecting ',' or ';' in /in/kX6Op on line 6
Process exited with code 255.

preferences:
200.86 ms | 1395 KiB | 78 Q