3v4l.org

run code in 300+ PHP versions simultaneously
<?php class enkripsi { private $kunci1=array('a','b','c','d','e','f','g','h','i','j','k','l','m'); protected $kunci2=array('n','o','p','q','r','s','t','u','v','w','x','y','z'); private function cari($a) { if(in_array($a,$this->kunci1)) { $b=array_search($a,$this->kunci1); return $this->kunci2[$b]; } elseif(in_array($a,$this->kunci2)) { $b=array_search($a,$this->kunci2); return $this->kunci1[$b]; } } public function cetak($a) { echo $this->cari($a); } } $ob=new enkripsi(); $ob->cetak("n");
Output for git.master, git.master_jit, rfc.property-hooks
a

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
57.87 ms | 401 KiB | 8 Q