3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $value = '1'; if(filter_var($value, FILTER_VALIDATE_INT) !== false) { if(is_int($value) === true) { echo 'ok'; } } else{ echo '--'; } else { echo 'ko'; } ?>
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected 'else' (T_ELSE) in /in/L5aAP on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ELSE in /in/L5aAP on line 11
Process exited with code 255.