3v4l.org

run code in 300+ PHP versions simultaneously
<?php class induk{ protected $tinggi=6; protected $alas=20; public function SetTinggi(){ return ($this->tinggi/2); } public function setAlas(){ return ($this->alas/2) } } $cp2 =new induk(); echo $cp2 ->SetTinggi echo $cp2 ->aetAlas

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)
7.2.110.0050.01116.28
7.2.100.0060.00616.22
7.2.90.0030.01016.26
7.2.80.0030.01116.19
7.2.70.0040.01116.46
7.2.60.0070.00716.38
7.2.50.0000.01616.49
7.2.40.0070.01016.74
7.2.30.0070.00716.49
7.2.20.0100.00316.39
7.2.10.0070.00716.42
7.2.00.0080.00616.70
7.1.230.0060.00915.42
7.1.220.0090.00615.48
7.1.210.0060.00915.28
7.1.200.0030.00915.32
7.1.190.0040.01115.37
7.1.180.0080.00315.23
7.1.170.0090.00315.50
7.1.160.0130.00015.37
7.1.150.0030.00915.21
7.1.140.0040.01415.36
7.1.130.0040.01115.46
7.1.120.0050.01015.21
7.1.110.0080.00615.04
7.1.100.0030.01015.34
7.1.90.0080.00315.36
7.1.80.0030.01115.38
7.1.70.0050.01115.35
7.1.60.0270.01233.46
7.1.50.0290.01033.56
7.1.40.0270.01333.82
7.1.30.0300.01033.54
7.1.20.0270.01233.51
7.1.10.0040.00815.25
7.1.00.0110.00415.65
5.6.380.0070.00714.27

preferences:
138.4 ms | 1394 KiB | 7 Q