3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i = 4; switch (true) { case ($i == 4): echo "4"; break; case ($i == 5): echo "5"; break; default: echo "default"; break; }
Output for 4.3.0 - 7.2.0
4