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]; } else {} } public function cetak($a) { echo $this->cari($a); } } $ob=new enkripsi(); $ob->cetak("a"); } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.2.110.0370.00714.21
7.2.100.0380.01014.49
7.2.90.0350.00414.35
7.2.80.0460.00314.48
7.2.70.0470.01014.82
7.2.60.0340.00714.66
7.2.50.0410.00614.46
7.2.40.0340.01014.54
7.2.30.0450.00714.55
7.2.20.0530.01214.30
7.2.10.0400.01014.56
7.2.00.0430.00314.63
7.1.230.0320.00913.49
7.1.220.0320.00413.68
7.1.210.0390.00313.73
7.1.200.1010.00313.48
7.1.190.0490.01013.25
7.1.180.0390.00313.47
7.1.170.0340.01013.50
7.1.160.0340.00613.34
7.1.150.0410.00013.44
7.1.140.0340.00713.64
7.1.130.0580.00313.54
7.1.120.0380.00613.72
7.1.110.0460.01013.43
7.1.100.0570.01013.43
7.1.90.0580.00013.43
7.1.80.0430.00313.54
7.1.70.0410.00613.27
7.1.60.0540.00731.73
7.1.50.0790.00631.46
7.1.40.1180.00731.55
7.1.30.0720.01031.58
7.1.20.1500.01631.63
7.1.10.0540.00413.36
7.1.00.0460.00613.55
5.6.380.0100.00313.87

preferences:
145.48 ms | 1386 KiB | 7 Q