3v4l.org

run code in 300+ PHP versions simultaneously
<?php class segitiga { protected $alas; protected $tinggi; public function setalas ($a) { $pr=$this->$alas; $pr=10; return $pr; } public function settinggi ($a) { $tgg=$this->$tinggi; $tgg=15; return $tgg; } } class hitmir extends segitiga { protected $miring; private function hit($a) { $mir=($pr*$pr+$tgg*$tgg); } } $ob= new segitiga(); $ob2= new hitmir(); echo PHP_EOL; $ob2->this->hit();

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.0110.01116.75
8.3.50.0070.01018.05
8.3.40.0070.00718.94
8.3.30.0140.00418.62
8.3.20.0050.00319.34
8.3.10.0050.00323.65
8.3.00.0000.00820.68
8.2.180.0090.00618.67
8.2.170.0110.00422.96
8.2.160.0040.01120.51
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00417.97
8.2.120.0080.00026.35
8.2.110.0060.00322.25
8.2.100.0110.00017.84
8.2.90.0000.00817.88
8.2.80.0000.00818.73
8.2.70.0040.00418.04
8.2.60.0040.00418.03
8.2.50.0030.00618.10
8.2.40.0080.00021.20
8.2.30.0000.00819.09
8.2.20.0100.00018.05
8.2.10.0040.00417.88
8.2.00.0080.00317.67
8.1.280.0140.00725.92
8.1.270.0000.00820.60
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00918.92
8.1.230.0070.00417.64
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0070.00317.36
8.1.190.0080.00017.53
8.1.180.0000.00918.10
8.1.170.0060.00318.48
8.1.160.0040.00418.75
8.1.150.0070.00018.77
8.1.140.0080.00022.19
8.1.130.0060.00620.17
8.1.120.0030.00317.41
8.1.110.0000.00717.40
8.1.100.0040.00417.36
8.1.90.0000.00717.39
8.1.80.0040.00417.38
8.1.70.0030.00717.29
8.1.60.0030.00617.44
8.1.50.0040.00417.40
8.1.40.0080.00017.48
8.1.30.0030.00617.61
8.1.20.0030.00617.54
8.1.10.0040.00417.48
8.1.00.0040.00417.39
8.0.300.0030.00618.77
8.0.290.0080.00016.63
8.0.280.0000.00718.35
8.0.270.0030.00317.17
8.0.260.0000.00618.39
8.0.250.0080.00016.95
8.0.240.0030.00316.82
8.0.230.0080.00016.84
8.0.220.0070.00016.85
8.0.210.0030.00516.82
8.0.200.0000.00616.96
8.0.190.0070.00016.88
8.0.180.0000.00816.90
8.0.170.0040.00416.95
8.0.160.0000.00716.79
8.0.150.0100.00016.72
8.0.140.0000.00716.73
8.0.130.0050.00013.32
8.0.120.0000.00716.75
8.0.110.0050.00316.79
8.0.100.0050.00216.77
8.0.90.0050.00316.91
8.0.80.0030.01016.81
8.0.70.0040.00416.76
8.0.60.0000.00716.95
8.0.50.0050.00316.91
8.0.30.0130.01017.16
8.0.20.0110.00817.40
8.0.10.0080.00017.03
8.0.00.0100.01116.68
7.4.330.0050.00015.55
7.4.320.0030.00316.46
7.4.300.0000.00716.59
7.4.290.0000.00716.63
7.4.280.0020.00516.35
7.4.270.0000.00716.61
7.4.260.0030.00316.61
7.4.250.0000.00816.61
7.4.240.0070.00016.59
7.4.230.0000.00716.46
7.4.220.0070.00016.35
7.4.210.0070.00816.53
7.4.200.0030.00316.66
7.4.160.0120.00416.52
7.4.140.0100.00917.86
7.4.130.0170.00716.73
7.4.120.0100.00916.49
7.4.110.0130.01016.63
7.4.100.0140.00416.30
7.4.90.0090.00916.65
7.4.80.0130.00319.39
7.4.70.0140.00416.42
7.4.60.0100.00616.39
7.4.50.0100.00516.59
7.4.40.0060.01616.55
7.4.00.0060.00315.03
7.3.330.0050.00013.28
7.3.320.0060.00013.26
7.3.310.0030.00516.25
7.3.300.0000.00716.23
7.3.290.0000.00716.27
7.3.280.0010.01316.33
7.3.260.0080.01216.43
7.3.240.0110.00916.40
7.3.230.0180.00016.46
7.3.210.0080.00816.21
7.3.200.0030.01516.44
7.3.190.0060.01216.50
7.3.180.0070.01416.50
7.3.170.0160.00416.26
7.3.160.0030.01316.35
7.3.10.0090.01416.24
7.3.00.0140.01115.68
7.2.330.0030.01316.37
7.2.320.0060.01216.49
7.2.310.0060.00916.53
7.2.300.0050.01116.87
7.2.290.0060.00916.59
7.2.130.0100.01016.39
7.2.120.0240.00316.79
7.2.110.0070.01116.31
7.2.100.0170.00616.59
7.2.90.0130.00616.69
7.2.80.0080.00916.32
7.2.70.0080.00816.52
7.2.60.0150.00716.69
7.2.50.0080.00816.48
7.2.40.0090.00716.59
7.2.30.0080.01016.80
7.2.20.0140.00316.55
7.2.10.0070.01016.52
7.2.00.0050.01316.86
7.1.250.0080.01115.16
7.1.230.0060.00915.23
7.1.220.0040.00815.45
7.1.210.0060.00715.77
7.1.200.0030.00815.36
7.1.190.0060.00615.57
7.1.180.0060.00615.56
7.1.170.0070.00415.44
7.1.160.0150.00015.46
7.1.150.0090.00615.76
7.1.140.0050.01015.66
7.1.130.0090.00615.52
7.1.120.0090.00615.54
7.1.110.0060.00915.59
7.1.100.0060.00815.62
7.1.90.0090.00615.69
7.1.80.0090.00615.48
7.1.70.0070.00615.70
7.1.60.0270.01033.59
7.1.50.0230.01033.67
7.1.40.0300.00633.54
7.1.30.0230.01033.19
7.1.20.0270.00633.63
7.1.10.0080.00415.37
7.1.00.0070.00715.71
5.6.380.0000.01414.50

preferences:
59.92 ms | 401 KiB | 5 Q