3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 10; $y =10.5; echo $10+$10.5; ?>
based on GphhG
Output for 7.0.0
Parse error: syntax error, unexpected '10' (T_LNUMBER), expecting variable (T_VARIABLE) or '{' or '$' in /in/PgLSS on line 4
Process exited with code 255.
Output for 5.4.10 - 5.6.16
Parse error: syntax error, unexpected '10' (T_LNUMBER), expecting variable (T_VARIABLE) or '$' in /in/PgLSS on line 4
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /in/PgLSS on line 4
Process exited with code 255.