3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function validNumber($number) { $number = intval($number); return ($number == 1 || $number == 2 || $number == 3 || $number == 4); } $xss = '3 /><img src=x onerror="alert(1)"'; var_dump(validNumber($xss));
based on Angp3
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
bool(true)