3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array(1=>'bagong',2=>'gareng',3=>'petruk',4=>'semar',5=>'togog'); echo $data[$_GET['input']]; ?>
Output for 5.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined index: input in /in/LEcoe on line 3 Notice: Undefined index: in /in/LEcoe on line 3
Output for 4.3.0 - 5.2.17
Notice: Undefined index: input in /in/LEcoe on line 3 Notice: Undefined index: in /in/LEcoe on line 3