3v4l.org

run code in 300+ PHP versions simultaneously
<?php class induk { protected $A=12; protected $T=10; protected function hitung_rumus($r) { return $this->A=$alas; return $this->T=$tinggi; echo $v = 0.5*$alas*$tinggi; } public function cetak() { echo $this->r=$rumus; } } class anak extends induk { protected $miring; protected function sisi_miring($r) { echo $this->cari($r); } } class cucu extends anak { public $pesan; private function keliling($r) { echo $this->cari($r); } } $ob = new induk(); $ob2= new anak(); $ob3= new cucu(); echo PHP_EOL; $ob2->panggil(sisi_miring);

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)
8.3.60.0140.00816.50
8.3.50.0140.00718.27
8.3.40.0120.00318.84
8.3.30.0070.00718.67
8.3.20.0080.00019.18
8.3.10.0040.00423.66
8.3.00.0000.00820.77
8.2.180.0120.00318.42
8.2.170.0080.00822.96
8.2.160.0070.00720.52
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0050.00318.09
8.2.120.0070.00326.35
8.2.110.0050.00520.96
8.2.100.0030.00917.72
8.2.90.0000.00817.89
8.2.80.0000.00918.05
8.2.70.0040.00417.93
8.2.60.0040.00418.16
8.2.50.0000.00918.10
8.2.40.0030.00619.49
8.2.30.0000.00719.07
8.2.20.0070.00317.92
8.2.10.0000.00817.95
8.2.00.0100.00017.54
8.1.280.0110.00825.92
8.1.270.0080.00018.86
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0080.00022.18
8.1.230.0090.00321.10
8.1.220.0000.00817.74
8.1.210.0040.00418.81
8.1.200.0060.00617.35
8.1.190.0080.00017.30
8.1.180.0000.00918.10
8.1.170.0050.00318.54
8.1.160.0000.00818.84
8.1.150.0080.00020.66
8.1.140.0030.00322.12
8.1.130.0100.00020.23
8.1.120.0020.00517.31
8.1.110.0040.00417.36
8.1.100.0050.00317.40
8.1.90.0040.00417.44
8.1.80.0030.00617.39
8.1.70.0070.00317.31
8.1.60.0040.00417.47
8.1.50.0040.00417.54
8.1.40.0040.00417.49
8.1.30.0000.00817.63
8.1.20.0100.00017.71
8.1.10.0040.00417.59
8.1.00.0020.00517.43
8.0.300.0000.00719.77
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0030.00317.16
8.0.260.0030.00318.36
8.0.250.0070.00017.00
8.0.240.0000.00717.03
8.0.230.0050.00216.95
8.0.220.0030.00316.90
8.0.210.0040.00416.83
8.0.200.0080.00016.95
8.0.190.0040.00416.94
8.0.180.0000.00816.82
8.0.170.0000.00916.98
8.0.160.0000.00816.90
8.0.150.0040.00716.89
8.0.140.0070.00016.77
8.0.130.0030.00313.33
8.0.120.0080.00016.71
8.0.110.0000.00716.79
8.0.100.0050.00316.88
8.0.90.0040.00416.94
8.0.80.0040.01116.80
8.0.70.0050.00216.88
8.0.60.0040.00416.84
8.0.50.0040.00416.84
8.0.30.0040.01517.07
8.0.20.0070.01317.40
8.0.10.0040.00416.92
8.0.00.0090.00916.72
7.4.330.0000.00515.55
7.4.320.0030.00316.37
7.4.300.0030.00316.65
7.4.290.0030.00316.42
7.4.280.0060.00316.50
7.4.270.0030.00316.57
7.4.260.0000.00716.45
7.4.250.0000.00816.43
7.4.240.0040.00316.52
7.4.230.0030.00316.64
7.4.220.0040.00416.51
7.4.210.0110.00516.64
7.4.200.0000.00716.52
7.4.160.0090.00916.61
7.4.140.0100.00817.86
7.4.130.0090.01416.34
7.4.120.0090.00916.49
7.4.110.0120.00916.39
7.4.100.0040.01916.58
7.4.90.0170.00016.42
7.4.80.0140.00319.39
7.4.70.0120.00616.41
7.4.60.0100.00716.52
7.4.50.0090.00616.43
7.4.40.0040.01316.34
7.4.00.0090.00914.97
7.3.330.0050.00013.14
7.3.320.0000.00713.13
7.3.310.0030.00616.34
7.3.300.0000.00716.17
7.3.290.0030.00316.28
7.3.280.0080.01116.31
7.3.260.0120.00416.41
7.3.240.0100.00916.33
7.3.230.0090.00916.32
7.3.210.0070.01016.43
7.3.200.0130.00616.68
7.3.190.0080.01516.50
7.3.180.0090.00916.34
7.3.170.0110.00716.38
7.3.160.0100.00716.48
7.3.10.0130.01115.77
7.3.00.0180.00016.35
7.2.330.0090.01216.86
7.2.320.0120.00616.59
7.2.310.0070.01416.32
7.2.300.0100.00616.43
7.2.290.0090.00616.42
7.2.130.0130.00916.42
7.2.120.0120.00816.46
7.2.110.0100.00716.40
7.2.100.0090.00816.35
7.2.90.0100.00716.55
7.2.80.0070.00916.39
7.2.70.0080.01016.46
7.2.60.0120.00516.62
7.2.50.0090.00816.63
7.2.40.0110.00616.61
7.2.30.0080.00816.57
7.2.20.0070.01016.71
7.2.10.0100.00616.39
7.2.00.0120.00616.75
7.1.250.0170.00314.98
7.1.230.0060.00815.63
7.1.220.0100.00515.43
7.1.210.0100.00415.43
7.1.200.0050.00815.47
7.1.190.0030.01015.32
7.1.180.0070.00815.62
7.1.170.0060.00815.14
7.1.160.0080.00815.59
7.1.150.0110.00415.47
7.1.140.0050.00915.43
7.1.130.0120.00415.50
7.1.120.0050.00715.43
7.1.110.0090.00515.49
7.1.100.0050.01015.68
7.1.90.0080.00815.43
7.1.80.0090.00715.53
7.1.70.0130.00415.35
7.1.60.0210.01133.70
7.1.50.0240.01033.62
7.1.40.0250.00733.66
7.1.30.0180.01333.48
7.1.20.0190.01833.65
7.1.10.0090.00615.53
7.1.00.0130.00115.68
5.6.380.0070.00614.21

preferences:
40.48 ms | 400 KiB | 5 Q