3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CP2 { protected $alas; protected $miring; public function set($a,$b) { $this->alas = $a; $this->miring = $b; echo "Alas: ".$this->alas.'<br />'."Miring: ".$this->miring.'<br />'; } } 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.0200.00016.63
8.3.50.0140.00318.29
8.3.40.0070.01018.67
8.3.30.0080.00818.71
8.3.20.0040.00419.30
8.3.10.0030.00523.66
8.3.00.0040.00420.58
8.2.180.0120.00318.41
8.2.170.0060.01222.96
8.2.160.0070.00720.37
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00417.97
8.2.120.0000.00726.35
8.2.110.0070.00321.07
8.2.100.0120.00017.84
8.2.90.0000.00917.63
8.2.80.0090.00017.97
8.2.70.0060.00317.80
8.2.60.0000.00718.08
8.2.50.0040.00418.10
8.2.40.0030.00519.31
8.2.30.0050.00219.27
8.2.20.0070.00418.05
8.2.10.0030.00517.95
8.2.00.0040.00717.63
8.1.280.0070.01325.92
8.1.270.0030.00518.87
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0110.00022.14
8.1.230.0050.00517.53
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0060.00317.35
8.1.180.0050.00318.10
8.1.170.0040.00418.46
8.1.160.0050.00218.77
8.1.150.0040.00418.89
8.1.140.0030.00322.13
8.1.130.0030.00520.31
8.1.120.0000.00717.50
8.1.110.0000.00717.50
8.1.100.0070.00317.41
8.1.90.0000.00717.35
8.1.80.0040.00417.45
8.1.70.0000.00817.43
8.1.60.0030.00617.59
8.1.50.0000.00817.35
8.1.40.0030.00517.55
8.1.30.0030.00517.59
8.1.20.0000.00917.55
8.1.10.0000.00717.63
8.1.00.0000.00817.48
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00718.33
8.0.270.0070.00017.26
8.0.260.0000.00618.36
8.0.250.0000.00716.90
8.0.240.0030.00316.95
8.0.230.0030.00517.01
8.0.220.0030.00316.85
8.0.210.0070.00016.77
8.0.200.0060.00016.85
8.0.190.0070.00016.98
8.0.180.0030.00516.91
8.0.170.0000.00916.88
8.0.160.0080.00016.88
8.0.150.0030.00716.89
8.0.140.0070.00016.76
8.0.130.0050.00013.38
8.0.120.0040.00416.86
8.0.110.0000.00716.80
8.0.100.0050.00316.78
8.0.90.0000.00716.85
8.0.80.0070.00716.89
8.0.70.0040.00416.88
8.0.60.0080.00016.71
8.0.50.0040.00416.76
8.0.30.0150.00917.14
8.0.20.0120.00617.40
8.0.10.0050.00316.81
8.0.00.0110.00716.95
7.4.330.0050.00015.55
7.4.320.0000.00616.55
7.4.300.0030.00316.41
7.4.290.0000.00816.43
7.4.280.0080.00016.45
7.4.270.0030.00316.48
7.4.260.0000.00716.59
7.4.250.0100.00016.61
7.4.240.0000.00716.61
7.4.230.0070.00016.70
7.4.220.0060.00316.36
7.4.210.0080.00916.49
7.4.200.0040.00416.35
7.4.160.0090.00816.48
7.4.140.0100.01017.86
7.4.130.0120.00616.50
7.4.120.0110.00916.55
7.4.110.0070.01616.39
7.4.100.0040.01516.59
7.4.90.0120.00916.64
7.4.80.0090.00919.39
7.4.70.0100.01316.61
7.4.60.0070.01016.24
7.4.50.0120.00416.35
7.4.40.0030.01416.38
7.4.00.0040.01115.07
7.3.330.0020.00213.17
7.3.320.0060.00013.32
7.3.310.0060.00316.41
7.3.300.0000.00616.18
7.3.290.0030.00316.30
7.3.280.0100.00916.26
7.3.260.0100.00716.33
7.3.240.0110.00716.37
7.3.230.0030.01316.61
7.3.210.0100.00716.29
7.3.200.0150.00416.27
7.3.190.0120.01216.49
7.3.180.0030.01316.30
7.3.170.0120.01216.42
7.3.160.0080.00816.46
7.2.330.0140.00316.67
7.2.320.0090.01316.76
7.2.310.0040.01516.68
7.2.300.0100.00716.58
7.2.290.0100.01316.79
7.2.110.0070.01016.17
7.2.100.0040.01216.69
7.2.90.0080.00416.45
7.2.80.0060.01016.34
7.2.70.0100.00316.69
7.2.60.0040.00816.84
7.2.50.0030.00916.88
7.2.40.0040.00816.84
7.2.30.0070.00716.96
7.2.20.0100.00416.72
7.2.10.0120.00716.77
7.2.00.0060.00616.90
7.1.230.0090.00615.79
7.1.220.0030.01215.56
7.1.210.0070.00715.75
7.1.200.0090.00615.57
7.1.190.0060.00615.51
7.1.180.0060.00615.84
7.1.170.0070.00415.63
7.1.160.0040.00815.62
7.1.150.0000.01315.67
7.1.140.0040.01115.73
7.1.130.0110.00015.70
7.1.120.0070.00415.39
7.1.110.0080.00815.29
7.1.100.0030.01215.59
7.1.90.0110.00415.71
7.1.80.0080.00815.46
7.1.70.0090.00315.66
7.1.60.0220.00933.53
7.1.50.0190.01033.63
7.1.40.0300.00333.47
7.1.30.0250.00433.75
7.1.20.0220.00933.70
7.1.10.0090.00915.66
7.1.00.0030.01015.48
5.6.380.0080.00813.98

preferences:
56.63 ms | 400 KiB | 5 Q