3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh function a(mixed $a):num { invariant(is_int($a) || is_float($a), "msg"); return $a; }
Output for hhvm-3.10.0 - 3.12.0
Output for 5.4.0 - 5.4.32
<?hh function a(mixed $a):num { invariant(is_int($a) || is_float($a), "msg"); return $a; }