3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump((int)"1e1", (int)"10", (float)"1e1", (float)"10"); var_dump((int)"1e1" == "10"); var_dump("1e1" == "10"); var_dump("str" == "0"); var_dump("str" == 0); var_dump((flaot)"0.99999999999999999999999999999999999999999999999999", "0.99999999999999999999999999999999999999999999" == "0.12345678901235");
Output for 5.4.0 - 5.4.21
Parse error: syntax error, unexpected '"0.999999999999999999999999999' (T_CONSTANT_ENCAPSED_STRING) in /in/DCAoM on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/DCAoM on line 9
Process exited with code 255.