3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test($n) { return intval($n); } $a="3"; switch($a) { case test($a): echo "Yeah"; break; default: echo "Nope"; }
Output for 4.3.0 - 7.1.0
Yeah