3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $v = '1458' if (is_scalar($v)) { var_dump('scalar', (0 !== strlen($v))); } if (is_array($v)) { var_dump('array', (0 !== count($v))); } var_dump('false');
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected 'if' (T_IF) in /in/rBlTo on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_IF in /in/rBlTo on line 3
Process exited with code 255.