3v4l.org

run code in 300+ PHP versions simultaneously
<?php class segitiga { protected $alas; protected $tinggi; public function set_alas($a) { $this->alas=$als; $als=10; echo $als; } public function set_tinggi($t) { $this->tinggi=$tng; $tng=24; } } class anaknya extends segitiga { protected $miring; protected function pythagoras() { } } class cucunya extends anaknya { public $pesan; private function keliling() { } } $sgt= new segitiga(); $sgt2= new anaknya(); $sgt3= new cucunya();

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.0170.00318.12
8.3.50.0140.00018.20
8.3.40.0130.00318.44
8.3.30.0110.00418.54
8.3.20.0000.00819.04
8.3.10.0070.00023.66
8.3.00.0040.00420.64
8.2.180.0140.00316.50
8.2.170.0150.00422.96
8.2.160.0100.00720.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00319.70
8.2.120.0040.00426.35
8.2.110.0080.00320.96
8.2.100.0040.00917.53
8.2.90.0070.00019.34
8.2.80.0030.00517.97
8.2.70.0040.00418.04
8.2.60.0060.00318.09
8.2.50.0030.00618.10
8.2.40.0080.00019.37
8.2.30.0000.00719.12
8.2.20.0030.00718.00
8.2.10.0090.00018.05
8.2.00.0050.00517.57
8.1.280.0060.01225.92
8.1.270.0040.00418.83
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00322.30
8.1.230.0070.00420.87
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0070.00018.74
8.1.150.0080.00018.75
8.1.140.0070.00022.05
8.1.130.0000.01020.24
8.1.120.0000.00717.41
8.1.110.0070.00017.31
8.1.100.0070.00417.39
8.1.90.0000.00717.37
8.1.80.0030.00517.34
8.1.70.0060.00317.21
8.1.60.0060.00317.55
8.1.50.0080.00017.33
8.1.40.0060.00317.44
8.1.30.0030.00517.57
8.1.20.0000.00817.57
8.1.10.0000.00717.45
8.1.00.0030.00617.46
8.0.300.0040.00419.86
8.0.290.0000.00816.63
8.0.280.0050.00318.34
8.0.270.0030.00317.24
8.0.260.0060.00018.38
8.0.250.0030.00316.91
8.0.240.0080.00016.77
8.0.230.0000.00716.91
8.0.220.0030.00516.89
8.0.210.0000.00716.81
8.0.200.0030.00316.88
8.0.190.0080.00016.75
8.0.180.0040.00316.85
8.0.170.0000.00816.82
8.0.160.0000.00816.89
8.0.150.0000.00916.64
8.0.140.0040.00416.72
8.0.130.0030.00313.18
8.0.120.0050.00316.67
8.0.110.0040.00416.72
8.0.100.0040.00416.82
8.0.90.0070.00016.89
8.0.80.0090.00616.87
8.0.70.0030.00516.87
8.0.60.0040.00416.79
8.0.50.0040.00416.70
8.0.30.0110.00716.96
8.0.20.0090.01017.40
8.0.10.0040.00416.75
8.0.00.0130.00616.61
7.4.330.0000.00515.55
7.4.320.0030.00316.43
7.4.300.0030.00316.40
7.4.290.0040.00416.36
7.4.280.0080.00016.42
7.4.270.0000.00716.59
7.4.260.0000.00716.57
7.4.250.0100.00016.47
7.4.240.0070.00016.45
7.4.230.0040.00416.52
7.4.220.0030.00616.44
7.4.210.0080.00716.57
7.4.200.0000.00816.19
7.4.160.0080.00816.43
7.4.140.0090.00917.86
7.4.130.0090.00916.24
7.4.120.0120.00716.41
7.4.110.0140.01016.40
7.4.100.0060.01216.43
7.4.90.0060.01516.46
7.4.80.0130.00719.39
7.4.70.0090.00816.39
7.4.60.0030.01416.27
7.4.50.0060.00916.47
7.4.40.0070.01016.34
7.4.00.0070.00715.00
7.3.330.0000.00513.04
7.3.320.0060.00013.00
7.3.310.0030.00616.20
7.3.300.0000.00716.05
7.3.290.0070.00016.28
7.3.280.0110.00716.15
7.3.260.0110.00716.22
7.3.240.0080.01116.32
7.3.230.0150.00316.17
7.3.210.0030.01316.23
7.3.200.0100.00716.32
7.3.190.0090.00916.10
7.3.180.0090.01416.19
7.3.170.0100.01016.37
7.3.160.0060.00916.46
7.2.330.0120.00616.64
7.2.320.0120.00616.70
7.2.310.0090.00816.37
7.2.300.0130.00316.38
7.2.290.0060.00916.47
7.2.110.0120.01015.66
7.2.100.0120.00615.82
7.2.90.0120.00616.32
7.2.80.0070.00816.29
7.2.70.0050.00916.47
7.2.60.0100.00616.53
7.2.50.0070.00916.79
7.2.40.0090.00716.59
7.2.30.0080.00916.56
7.2.20.0080.00716.81
7.2.10.0100.00516.61
7.2.00.0070.00816.71
7.1.230.0080.00715.42
7.1.220.0130.00615.42
7.1.210.0140.00915.48
7.1.200.0030.01115.22
7.1.190.0030.00915.21
7.1.180.0080.00415.49
7.1.170.0090.00515.24
7.1.160.0090.00815.45
7.1.150.0070.00615.54
7.1.140.0060.00715.35
7.1.130.0060.00815.35
7.1.120.0060.00815.32
7.1.110.0080.00515.38
7.1.100.0070.00515.53
7.1.90.0090.00415.41
7.1.80.0060.01015.53
7.1.70.0090.00515.54
7.1.60.0240.00933.43
7.1.50.0240.01133.51
7.1.40.0240.01133.58
7.1.30.0270.00933.59
7.1.20.0220.00833.37
7.1.10.0090.00515.37
7.1.00.0060.00915.52
5.6.380.0080.00714.20

preferences:
60.64 ms | 401 KiB | 5 Q