3v4l.org

run code in 300+ PHP versions simultaneously
<?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.

preferences:
163.18 ms | 1399 KiB | 45 Q