3v4l.org

run code in 300+ PHP versions simultaneously
<?php class induk { protected function alas() { return "miring"; } } class anak extends induk { protected function tinggi() { return "hitung tinggi"; } } class cucu extends anak { protected function public() { return "hitun tinggi"; } public function hitung(){ $a = $this->set tinggi(); $b = $this->hitung tinggi(); $c = $this->hitung luas(); return "$a <br /> $b <br /> $c"; } } $gadget_baru = new induk(); echo $gadget_baru->hitung() ?>

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.0100.00316.23
7.2.100.0110.00016.62
7.2.90.0120.00316.17
7.2.80.0030.01016.28
7.2.70.0090.00616.55
7.2.60.0130.00316.43
7.2.50.0060.01016.66
7.2.40.0080.00416.69
7.2.30.0030.01316.67
7.2.20.0090.00916.49
7.2.10.0070.01016.45
7.2.00.0180.00516.37
7.1.230.0060.00615.61
7.1.220.0070.00715.14
7.1.210.0040.00715.46
7.1.200.0060.00615.39
7.1.190.0060.00615.48
7.1.180.0090.00615.41
7.1.170.0040.00815.25
7.1.160.0060.00615.20
7.1.150.0080.00515.64
7.1.140.0070.00715.46
7.1.130.0040.00715.43
7.1.120.0230.00613.64
7.1.110.0180.01215.44
7.1.100.0070.00815.27
7.1.90.0090.00315.27
7.1.80.0050.00815.59
7.1.70.0060.00615.53
7.1.60.0260.01033.25
7.1.50.0210.01533.76
7.1.40.0300.01333.76
7.1.30.0240.01633.53
7.1.20.0350.00633.40
7.1.10.0320.00615.19
7.1.00.0060.00915.52
5.6.380.0160.00014.24

preferences:
142.23 ms | 1394 KiB | 7 Q