3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $n = 0; $r = ($n == 0) ? 0 : ($n == 1) ? 1 : ($n == 2) ? 2 : ($n % 100 >= 3 && $n <= 10) ? 3 : ($n % 100 >= 11 && $n <= 99) ? 4 : 5; echo $r;
Output for 4.3.0 - 7.2.0
5