3v4l.org

run code in 300+ PHP versions simultaneously
<?php class segitihga { protected $alas; protected $tinggi; protected static $a; { return $this->L=$lebar; $this->T=$tinggi; echo $v = $panjang*$lebar*$tinggi; } public function cetak() { echo $this->v=$volume; } public function cetak_pesan($print) { echo $this->pesan=$pesan; } } class luas extends segi { private $t; } class keliling extends luas { } $hitung = new segi(); echo $this->t=12; echo $this->l=10; echo $this->t=8; echo $this->v=P*L*T; 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.0030.01316.21
7.2.100.0060.00916.31
7.2.90.0030.01016.35
7.2.80.0030.01016.21
7.2.70.0120.00016.52
7.2.60.0060.00916.37
7.2.50.0070.01116.66
7.2.40.0000.01216.63
7.2.30.0100.00316.68
7.2.20.0100.00716.71
7.2.10.0070.01016.25
7.2.00.0040.01116.57
7.1.230.0030.00915.27
7.1.220.0090.00615.55
7.1.210.0110.00415.35
7.1.200.0120.00515.34
7.1.190.0040.00715.32
7.1.180.0100.00315.61
7.1.170.0080.00815.29
7.1.160.0090.00615.20
7.1.150.0120.00315.53
7.1.140.0040.01115.33
7.1.130.0100.00415.50
7.1.120.0080.00415.30
7.1.110.0040.00815.30
7.1.100.0080.00415.39
7.1.90.0090.00615.61
7.1.80.0090.00615.70
7.1.70.0130.00315.54
7.1.60.0240.01033.53
7.1.50.0310.00633.45
7.1.40.0240.01333.53
7.1.30.0230.00733.40
7.1.20.0240.00933.49
7.1.10.0030.00915.40
7.1.00.0000.01415.14
5.6.380.0060.00914.20

preferences:
138.62 ms | 1394 KiB | 7 Q