3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function returnNumber($index) { $values = array(1,2,3,4,5); return isset($values[$index]) ? $values[$index] : 0; } print returnNumber(2);
based on 0JJOn
Output for 4.3.0 - 7.1.0
3