3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hewan=array("a"=>"angsa","b"=>"bebek","c"=>"capung","d"=>"domba"); function proses(&$item,$key,$prefix){ $item="$item : $prefix"; } function tampil($item1,$key) { echo "$item.$key"; } echo tampil ?>
based on j10a8
Output for 7.2.0
Warning: Use of undefined constant tampil - assumed 'tampil' (this will throw an Error in a future version of PHP) in /in/ICEH8 on line 12 tampil
Output for 7.0.0 - 7.1.10
Notice: Use of undefined constant tampil - assumed 'tampil' in /in/ICEH8 on line 12 tampil
Output for 5.3.21 - 5.6.28
Notice: Use of undefined constant tampil - assumed 'tampil' in /in/ICEH8 on line 13 tampil