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.'.'."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.0030.01616.88
8.3.50.0150.00018.29
8.3.40.0100.00718.63
8.3.30.0040.01218.68
8.3.20.0040.00419.34
8.3.10.0040.00423.65
8.3.00.0040.00420.61
8.2.180.0150.00018.28
8.2.170.0090.00922.96
8.2.160.0120.00320.43
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00019.66
8.2.120.0090.00026.35
8.2.110.0100.00021.18
8.2.100.0000.01117.91
8.2.90.0000.00817.75
8.2.80.0030.00617.97
8.2.70.0030.00717.80
8.2.60.0050.00318.16
8.2.50.0060.00318.10
8.2.40.0040.00419.30
8.2.30.0000.00719.29
8.2.20.0050.00518.02
8.2.10.0040.00418.14
8.2.00.0030.00717.76
8.1.280.0210.00625.92
8.1.270.0050.00318.88
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0090.00022.19
8.1.230.0110.00017.53
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.38
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00918.50
8.1.160.0050.00318.80
8.1.150.0080.00018.81
8.1.140.0030.00322.18
8.1.130.0030.00720.26
8.1.120.0070.00017.43
8.1.110.0030.00517.35
8.1.100.0050.00517.50
8.1.90.0040.00417.45
8.1.80.0080.00017.43
8.1.70.0070.00317.40
8.1.60.0000.00817.54
8.1.50.0080.00017.51
8.1.40.0050.00317.55
8.1.30.0050.00317.71
8.1.20.0080.00417.66
8.1.10.0070.00017.59
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.37
8.0.270.0000.00717.17
8.0.260.0000.00618.45
8.0.250.0030.00316.94
8.0.240.0000.00716.98
8.0.230.0030.00316.97
8.0.220.0000.00716.89
8.0.210.0000.00716.76
8.0.200.0030.00316.85
8.0.190.0030.00316.82
8.0.180.0030.00516.78
8.0.170.0080.00016.81
8.0.160.0040.00416.91
8.0.150.0040.00716.83
8.0.140.0000.00716.82
8.0.130.0060.00013.27
8.0.120.0000.00816.86
8.0.110.0030.00516.96
8.0.100.0040.00416.69
8.0.90.0040.00416.80
8.0.80.0090.01216.92
8.0.70.0080.00016.92
8.0.60.0000.00716.79
8.0.50.0040.00416.99
8.0.30.0110.01116.88
8.0.20.0100.00817.40
8.0.10.0040.00416.90
8.0.00.0130.00516.72
7.4.330.0050.00015.55
7.4.320.0030.00316.61
7.4.300.0000.00616.42
7.4.290.0030.00316.63
7.4.280.0000.00816.63
7.4.270.0000.00716.58
7.4.260.0080.00016.61
7.4.250.0060.00316.55
7.4.240.0000.00716.64
7.4.230.0070.00016.63
7.4.220.0000.00816.34
7.4.210.0110.00516.57
7.4.200.0050.00316.70
7.4.160.0100.00716.52
7.4.140.0100.00817.86
7.4.130.0100.01016.48
7.4.120.0090.00816.48
7.4.110.0090.01016.49
7.4.100.0100.00716.48
7.4.90.0120.00616.57
7.4.80.0090.00919.39
7.4.70.0100.00716.58
7.4.60.0100.00716.50
7.4.50.0070.00716.49
7.4.40.0130.00316.58
7.4.10.0030.01515.13
7.4.00.0060.01015.04
7.3.330.0050.00013.30
7.3.320.0000.00613.38
7.3.310.0060.00316.20
7.3.300.0000.00616.32
7.3.290.0000.00716.17
7.3.280.0050.01216.24
7.3.260.0100.00916.46
7.3.240.0090.00916.37
7.3.230.0060.01816.55
7.3.210.0060.01116.17
7.3.200.0100.01016.45
7.3.190.0120.01116.27
7.3.180.0110.00716.48
7.3.170.0150.00816.37
7.3.160.0120.00416.44
7.3.130.0060.00914.83
7.3.120.0040.01814.88
7.3.110.0200.00014.70
7.3.100.0030.01014.76
7.3.90.0110.00814.61
7.3.80.0060.01014.63
7.3.70.0070.00414.52
7.3.60.0060.00614.89
7.3.50.0060.01214.85
7.3.40.0130.00014.81
7.3.30.0040.01114.84
7.3.20.0070.01116.66
7.3.10.0080.00616.53
7.3.00.0030.00816.48
7.2.330.0090.00916.38
7.2.320.0200.00316.57
7.2.310.0120.00416.57
7.2.300.0070.01016.85
7.2.290.0030.01316.79
7.2.260.0070.01315.09
7.2.250.0110.00715.15
7.2.240.0070.01015.27
7.2.230.0070.01015.11
7.2.220.0070.01014.77
7.2.210.0090.00615.20
7.2.200.0000.01415.13
7.2.190.0080.00815.02
7.2.180.0090.00014.81
7.2.170.0030.01014.73
7.2.160.0090.00615.10
7.2.150.0130.00316.52
7.2.140.0070.00316.71
7.2.130.0050.00816.87
7.2.120.0060.00716.77
7.2.110.0060.00916.65
7.2.100.0110.00316.69
7.2.90.0070.00816.65
7.2.80.0090.00716.65
7.2.70.0040.01016.83
7.2.60.0050.01016.75
7.2.50.0070.00916.83
7.2.40.0080.00716.77
7.2.30.0090.00716.82
7.2.20.0070.00916.80
7.2.10.0080.00816.66
7.2.00.0060.00916.75
7.1.330.0070.00715.71
7.1.320.0120.00615.61
7.1.310.0090.00615.75
7.1.300.0030.00915.48
7.1.290.0070.00715.22
7.1.280.0040.00415.72
7.1.270.0060.00915.38
7.1.260.0000.01115.67
7.1.250.0060.00715.63
7.1.240.0030.01015.66
7.1.230.0050.00815.54
7.1.220.0030.00715.55
7.1.210.0090.00315.57
7.1.200.0050.00715.65
7.1.190.0060.00715.56
7.1.180.0060.00615.68
7.1.170.0060.00815.47
7.1.160.0050.00715.65
7.1.150.0050.00715.76
7.1.140.0050.00615.69
7.1.130.0080.00615.58
7.1.120.0070.00715.62
7.1.110.0090.00515.63
7.1.100.0060.00515.51
7.1.90.0040.00915.59
7.1.80.0050.00715.59
7.1.70.0070.00715.66
7.1.60.0210.00927.63
7.1.50.0170.00727.59
7.1.40.0170.00627.65
7.1.30.0150.01027.52
7.1.20.0160.00827.44
7.1.10.0060.00615.51
7.1.00.0100.00415.58
7.0.330.0030.01015.35
7.0.320.0060.00615.01
7.0.310.0030.00915.27
7.0.300.0030.01015.09
7.0.290.0000.01515.39
7.0.280.0060.01215.05
7.0.270.0100.00715.30
7.0.260.0070.00415.07
7.0.250.0040.00815.38
7.0.240.0060.00615.07
7.0.230.0000.01415.04
7.0.220.0040.00815.27
7.0.210.0050.00515.63
7.0.200.0070.00714.86
7.0.190.0090.00615.48
7.0.180.0000.01415.22
7.0.170.0040.00815.11
7.0.160.0110.00415.18
7.0.150.0030.01115.27
7.0.140.0070.00715.39
7.0.130.0040.01215.08
7.0.120.0060.00615.25
7.0.110.0030.00915.22
7.0.100.0040.01215.41
7.0.90.0030.00515.30
7.0.80.0030.01015.34
7.0.70.0000.01415.37
7.0.60.0030.00715.31
7.0.50.0060.00615.29
7.0.40.0080.00813.53
7.0.30.0070.01013.47
7.0.20.0000.01013.48
7.0.10.0060.00313.08
7.0.00.0070.00713.33
5.6.400.0030.00614.17
5.6.390.0100.00714.36
5.6.380.0070.00814.48
5.6.370.0000.01614.14
5.6.360.0030.01314.54
5.6.350.0090.00614.53
5.6.340.0060.00914.40
5.6.330.0030.01514.63
5.6.320.0070.00713.83
5.6.310.0060.00314.67
5.6.300.0000.01313.92
5.6.290.0100.00614.04
5.6.280.0110.00014.18
5.6.270.0100.00314.40
5.6.260.0110.00414.39
5.6.250.0060.00913.91
5.6.240.0000.01514.29
5.6.230.0080.00414.38
5.6.220.0030.01014.18
5.6.210.0060.00914.40
5.6.200.0100.00014.20
5.6.190.0100.00714.19
5.6.180.0070.01014.19
5.6.170.0080.00414.25
5.6.160.0100.00313.99
5.6.150.0070.00714.04
5.6.140.0070.00314.42
5.6.130.0030.01014.36
5.6.120.0060.00914.46
5.6.110.0080.00414.36
5.6.100.0000.01414.18
5.6.90.0030.01314.27
5.6.80.0030.01014.29
5.6.70.0060.00314.54
5.6.60.0000.01114.09
5.6.50.0030.00813.99
5.6.40.0000.01414.03
5.6.30.0040.01114.40
5.6.20.0030.01314.23
5.6.10.0070.00714.21
5.6.00.0040.00414.02

preferences:
60.35 ms | 401 KiB | 5 Q