3v4l.org

run code in 300+ PHP versions simultaneously
<?php class cp2 { protected $a=4; protected $m=5; prote public function tiga($a,$m) { echo "set alas dan set miring".$this->tiga(); } } $segitiga = new cp2 (); echo $segitiga->tiga(4,5); echo PHP_EOL;

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.0070.00716.05
7.2.100.0060.00616.21
7.2.90.0040.01116.35
7.2.80.0070.01016.38
7.2.70.0030.01416.42
7.2.60.0030.01416.57
7.2.50.0090.00816.57
7.2.40.0070.01016.43
7.2.30.0110.00316.88
7.2.20.0060.00616.63
7.2.10.0110.00716.66
7.2.00.0100.01016.75
7.1.230.0070.00415.64
7.1.220.0100.00315.20
7.1.210.0080.00815.47
7.1.200.0090.00715.49
7.1.190.0000.01315.49
7.1.180.0090.00615.32
7.1.170.0090.00615.45
7.1.160.0040.01115.24
7.1.150.0000.01315.29
7.1.140.0080.00615.37
7.1.130.0080.00515.43
7.1.120.0110.00015.26
7.1.110.0030.01015.43
7.1.100.0050.00815.44
7.1.90.0030.01115.52
7.1.80.0030.01215.41
7.1.70.0090.00315.47
7.1.60.0230.01033.66
7.1.50.0280.01233.45
7.1.40.0260.01333.53
7.1.30.0210.00933.59
7.1.20.0190.01233.61
7.1.10.0070.00415.24
7.1.00.0100.00715.27
5.6.380.0100.00714.24

preferences:
135.89 ms | 1398 KiB | 7 Q