3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function validateNumber($number) { try { echo $number = filter_var($number, FILTER_VALIDATE_INT)); } catch(Exception $e) { throw new PageNotAnInteger('That page number is not an integer'); } } validateNumber('a0');
Output for 5.3.0 - 5.4.23
Parse error: syntax error, unexpected ')', expecting ',' or ';' in /in/TuVGm on line 7
Process exited with code 255.