3v4l.org

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