3v4l.org

run code in 300+ PHP versions simultaneously
<?php class induk { protected $a; protected $t; public function set($a,$t){ $this->a=$a; $this->t=$t; $coba = ("$a $t"); echo $coba; } class anak extends induk{ protected $m; protected function hitungsisi($a,$t){ $this->m=$m; $m = (1/2)*$a*$t; echo "sisi miring :".$m } class cucu extends anak{ public $pesan; private function keliling($a,$t,$c){ } $this->m =$c $keliling = $c + $a + $t } } } $lala = new induk(); $nana = new anak(); $tata = new cucu(); echo $lala-> set(4 , 7); echo PHP_EOL; ?>

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.0070.00816.30
7.2.100.0060.00816.29
7.2.90.0060.00816.46
7.2.80.0040.01116.28
7.2.70.0100.00516.40
7.2.60.0080.00916.49
7.2.50.0070.00716.68
7.2.40.0060.00716.56
7.2.30.0100.00516.60
7.2.20.0090.00716.63
7.2.10.0040.01216.54
7.2.00.0070.00716.48
7.1.230.0080.00615.31
7.1.220.0020.01015.41
7.1.210.0070.00515.48
7.1.200.0080.00715.30
7.1.190.0060.00815.24
7.1.180.0090.00315.43
7.1.170.0110.00215.33
7.1.160.0060.00615.27
7.1.150.0080.00515.30
7.1.140.0080.00515.26
7.1.130.0040.01015.38
7.1.120.0040.00815.42
7.1.110.0050.00715.34
7.1.100.0100.00415.47
7.1.90.0050.00815.50
7.1.80.0060.00615.41
7.1.70.0050.00815.49
7.1.60.0200.01133.54
7.1.50.0270.00833.69
7.1.40.0250.01133.57
7.1.30.0270.01033.41
7.1.20.0250.00933.51
7.1.10.0080.00315.33
7.1.00.0060.00615.38
5.6.380.0070.00613.93

preferences:
140.99 ms | 1394 KiB | 7 Q