3v4l.org

run code in 300+ PHP versions simultaneously
<?php #AKBARDHANYWIDIYANTO - 04316024 class CP2 { protected $alas; protected $miring; public function set($a,$b) { $this->alas = $a; $this->miring = $b; echo "Alas: ".$this->alas.'.'."Miring: ".$this->miring.'.'; } } class subCP2 extends CP2 { protected $tinggi; protected function tinggi() { $this->tinggi=(pow($this->miring,2)-pow($this->alas,2)); echo "Tinggi Segitiga: ".$this->tinggi; } public function runTinggi() { echo $this->tinggi(); } } $run = new CP2(); $run = new subCP2(); $run->set(2,6); $run->runTinggi(); ?>

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.0130.00618.43
8.3.50.0070.01118.40
8.3.40.0100.00718.67
8.3.30.0070.00718.67
8.3.20.0050.00219.34
8.3.10.0040.00423.48
8.3.00.0000.00820.66
8.2.180.0130.00716.48
8.2.170.0000.01522.96
8.2.160.0150.00020.57
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0000.00817.78
8.2.120.0080.00026.35
8.2.110.0030.00619.30
8.2.100.0080.00417.52
8.2.90.0080.00019.57
8.2.80.0060.00317.97
8.2.70.0030.00617.80
8.2.60.0040.00418.22
8.2.50.0000.00818.10
8.2.40.0080.00019.26
8.2.30.0070.00019.25
8.2.20.0030.00718.04
8.2.10.0030.00517.97
8.2.00.0060.00617.60
8.1.280.0150.00025.92
8.1.270.0040.00418.94
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0130.00017.46
8.1.230.0090.00321.00
8.1.220.0080.00017.74
8.1.210.0060.00319.04
8.1.200.0100.00017.35
8.1.190.0030.00517.36
8.1.180.0030.00518.10
8.1.170.0040.00418.55
8.1.160.0000.00718.84
8.1.150.0060.00318.87
8.1.140.0030.00322.20
8.1.130.0040.00422.13
8.1.120.0070.00017.37
8.1.110.0050.00217.47
8.1.100.0030.00617.44
8.1.90.0000.00717.37
8.1.80.0000.00817.47
8.1.70.0030.00717.36
8.1.60.0040.00417.53
8.1.50.0040.00417.49
8.1.40.0040.00417.57
8.1.30.0050.00317.70
8.1.20.0040.00717.66
8.1.10.0030.00617.49
8.1.00.0000.00817.48
8.0.300.0000.00819.63
8.0.290.0000.00916.63
8.0.280.0040.00418.32
8.0.270.0000.00717.15
8.0.260.0000.00618.40
8.0.250.0070.00016.93
8.0.240.0030.00316.89
8.0.230.0080.00016.80
8.0.220.0030.00316.86
8.0.210.0000.00716.81
8.0.200.0000.00616.92
8.0.190.0040.00416.86
8.0.180.0050.00316.88
8.0.170.0000.00816.80
8.0.160.0080.00016.90
8.0.150.0090.00016.90
8.0.140.0030.00316.78
8.0.130.0030.00313.38
8.0.120.0040.00416.80
8.0.110.0000.00816.80
8.0.100.0030.00516.93
8.0.90.0040.00416.88
8.0.80.0130.00316.84
8.0.70.0050.00316.77
8.0.60.0000.00716.87
8.0.50.0050.00316.79
8.0.30.0100.01316.78
8.0.20.0160.00317.40
8.0.10.0040.00416.95
8.0.00.0130.00516.64
7.4.330.0000.00515.55
7.4.320.0060.00016.49
7.4.300.0060.00016.63
7.4.290.0060.00016.51
7.4.280.0030.00616.50
7.4.270.0030.00316.36
7.4.260.0030.00316.58
7.4.250.0000.01016.58
7.4.240.0040.00316.65
7.4.230.0030.00316.41
7.4.220.0030.00516.70
7.4.210.0070.00716.60
7.4.200.0070.00016.39
7.4.160.0140.00416.54
7.4.140.0080.01117.86
7.4.130.0170.00016.59
7.4.120.0080.01016.56
7.4.110.0130.01016.71
7.4.100.0140.00416.63
7.4.90.0070.01016.56
7.4.80.0070.01119.39
7.4.70.0070.01116.33
7.4.60.0060.01016.54
7.4.50.0070.01316.27
7.4.40.0100.00516.46
7.4.00.0060.00914.88
7.3.330.0020.00213.17
7.3.320.0030.00313.27
7.3.310.0030.00616.20
7.3.300.0070.00016.16
7.3.290.0000.00716.31
7.3.280.0130.00516.29
7.3.260.0100.00716.40
7.3.240.0080.01116.50
7.3.230.0170.00316.41
7.3.210.0080.00816.50
7.3.200.0080.00816.45
7.3.190.0090.01516.33
7.3.180.0030.01416.34
7.3.170.0110.01116.39
7.3.160.0030.01216.46
7.2.330.0050.01116.51
7.2.320.0130.00516.65
7.2.310.0000.01716.84
7.2.300.0030.01416.84
7.2.290.0070.01016.60
7.2.110.0080.00816.42
7.2.100.0070.00616.56
7.2.90.0080.00716.63
7.2.80.0080.00816.47
7.2.70.0090.00716.67
7.2.60.0060.01016.75
7.2.50.0080.00816.87
7.2.40.0050.01016.73
7.2.30.0070.00916.75
7.2.20.0080.00616.74
7.2.10.0090.00716.77
7.2.00.0090.00716.86
7.1.230.0090.00615.70
7.1.220.0090.00615.58
7.1.210.0060.00715.67
7.1.200.0080.00615.54
7.1.190.0080.00515.49
7.1.180.0070.00715.70
7.1.170.0060.00815.46
7.1.160.0060.01015.59
7.1.150.0100.00515.53
7.1.140.0090.00415.66
7.1.130.0090.00515.63
7.1.120.0070.00615.57
7.1.110.0130.00815.61
7.1.100.0060.00915.53
7.1.90.0080.00715.62
7.1.80.0050.00915.72
7.1.70.0080.00515.76
7.1.60.0280.00833.32
7.1.50.0230.01233.59
7.1.40.0250.01333.01
7.1.30.0230.00833.65
7.1.20.0270.01133.44
7.1.10.0050.00715.62
7.1.00.0070.00615.66
5.6.380.0090.00314.32

preferences:
58.43 ms | 401 KiB | 5 Q