3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = simplexml_load_string('<example><a>0.50</a><b>30.0</b></example>'); echo $x->a, "\n", $x->b, "\n"; echo money_format("%.2n"m $x->a), "\n", money_format("%.2n", $x->b), "\n";
Output for 5.4.0 - 5.4.6
Parse error: syntax error, unexpected 'm' (T_STRING) in /in/FppKn on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.16
Parse error: syntax error, unexpected T_STRING in /in/FppKn on line 5
Process exited with code 255.