3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fig = 23; $varbl = (real) $fig; $varb2 = (double) $fig; $varb3 = (decimal) $fig; $varb4 = (bool) $fig;
Output for 5.4.0 - 5.4.13
Parse error: syntax error, unexpected '$fig' (T_VARIABLE) in /in/Co7El on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.23
Parse error: syntax error, unexpected T_VARIABLE in /in/Co7El on line 6
Process exited with code 255.