3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $money1 = 68.75; $money2 = 54.35; $money = $money1 + $money2; // echo $money will output "123.1"; $formatted = sprintf("%01.2f", $money); echo $formatted will output "123.10" ?>
Output for 5.4.0 - 5.4.14
Parse error: syntax error, unexpected 'will' (T_STRING), expecting ',' or ';' in /in/TXP9R on line 8
Process exited with code 255.
Output for 5.2.14 - 5.3.24
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/TXP9R on line 8
Process exited with code 255.