3v4l.org

run code in 300+ PHP versions simultaneously
<?php // include('database.php'); // require('fpdf.php'); class FPDF {} $process = new Process(); class PDF extends FPDF { function Header() { // Logo $this->Image('logo.png',10,6,30); // Arial bold 15 $this->SetFont('Arial','B',15); // Move to the right $this->Cell(80); // Title $this->Cell(30,10,'Title',1,0,'C'); // Line break $this->Ln(20); } function Footer() { // Position at 1.5 cm from bottom $this->SetY(-15); // Arial italic 8 $this->SetFont('Arial','I',8); // Page number $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C'); } } class Process { private $dbconn; private $pdf; private $resultarr = array(); private $identarr = array(); function __construct() { //$this->dbconn = new Database(); $this->pdf = new PDF(); $this->init(0); } private function init($i) { switch($i) { case 0: $query = "SELECT ident FROM vm_result WHERE date > NOW() - INTERVAL 7 DAY GROUP BY ident"; break; case 1: break; } $this->load_entries($query); } private function load_entries($query) { /* $result = $this->dbconn->query($query); while($row = $result->fetch_assoc()) { array_push($this->identarr, $row['ident']); } // loop per customer foreach($this->identarr as $ident) { $this->resultarr = array(); $query = "SELECT name, count, date FROM vm_result WHERE ident = '$ident' ORDER BY date ASC"; $result = $this->dbconn->query($query); while($row = $result->fetch_assoc()) { $str = $row['name'] . ':' . $row['count'] . ':' . $row['date']; array_push($this->resultarr, $str); } // summarize $this->summarize(); */ } } private function summarize() { foreach($this->resultarr as $entry) { $tmp = explode(":", $entry); $name = $tmp[0]; $count = $tmp[1]; $day = $tmp[2]; } } } ?>

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)
5.4.320.0070.03512.54
5.4.310.0050.03912.53
5.4.300.0050.03812.54
5.4.290.0080.03512.53
5.4.280.0070.03412.42
5.4.270.0060.03612.42
5.4.260.0050.03812.43
5.4.250.0070.04112.42
5.4.240.0080.04812.43
5.4.230.0060.04412.42
5.4.220.0100.04212.42
5.4.210.0090.03312.42
5.4.200.0050.03812.42
5.4.190.0050.03612.41
5.4.180.0050.03612.41
5.4.170.0040.03912.42
5.4.160.0060.03612.42
5.4.150.0040.03712.41
5.4.140.0050.03812.11
5.4.130.0070.03412.08
5.4.120.0050.03912.05
5.4.110.0030.03712.05
5.4.100.0110.03812.04
5.4.90.0090.04412.05
5.4.80.0070.05212.05
5.4.70.0030.03812.04
5.4.60.0090.04412.04
5.4.50.0080.03312.04
5.4.40.0040.03712.03
5.4.30.0070.03412.03
5.4.20.0050.03512.03
5.4.10.0050.03812.02
5.4.00.0040.03811.52
5.3.290.0050.04012.80
5.3.280.0040.04012.71
5.3.270.0080.03812.72
5.3.260.0060.04012.72
5.3.250.0100.03312.72
5.3.240.0050.03912.72
5.3.230.0020.04112.71
5.3.220.0100.03312.68
5.3.210.0030.04112.68
5.3.200.0090.03412.68
5.3.190.0060.03712.68
5.3.180.0100.03312.67
5.3.170.0050.03712.67
5.3.160.0130.04712.67
5.3.150.0070.04512.67
5.3.140.0070.03512.66
5.3.130.0100.04212.65
5.3.120.0060.03812.65
5.3.110.0080.05412.66
5.3.100.0080.03512.14
5.3.90.0130.04012.13
5.3.80.0060.04012.11
5.3.70.0110.03812.11
5.3.60.0080.03412.09
5.3.50.0080.04912.04
5.3.40.0040.04312.04
5.3.30.0070.03512.00
5.3.20.0050.03711.78
5.3.10.0060.03811.75
5.3.00.0050.03811.73
5.2.170.0080.0459.24
5.2.160.0040.0329.24
5.2.150.0040.0319.24
5.2.140.0040.0319.24
5.2.130.0040.0299.20
5.2.120.0060.0339.20
5.2.110.0040.0329.21
5.2.100.0080.0329.20
5.2.90.0040.0289.20
5.2.80.0050.0409.19
5.2.70.0040.0299.20
5.2.60.0070.0279.14
5.2.50.0050.0289.12
5.2.40.0010.0339.09
5.2.30.0080.0259.06
5.2.20.0080.0249.06
5.2.10.0050.0278.96
5.2.00.0080.0358.83
5.1.60.0050.0228.12
5.1.50.0020.0268.12
5.1.40.0060.0248.09
5.1.30.0020.0278.44
5.1.20.0050.0338.46
5.1.10.0060.0238.19
5.1.00.0060.0238.20
5.0.50.0030.0216.66
5.0.40.0020.0216.53
5.0.30.0030.0336.34
5.0.20.0030.0316.30
5.0.10.0040.0196.29
5.0.00.0030.0306.28
4.4.90.0030.0154.77
4.4.80.0020.0164.76
4.4.70.0010.0174.75
4.4.60.0010.0184.76
4.4.50.0030.0204.77
4.4.40.0030.0254.71
4.4.30.0040.0164.76
4.4.20.0000.0184.84
4.4.10.0020.0164.85
4.4.00.0050.0224.76
4.3.110.0000.0184.67
4.3.100.0010.0184.66
4.3.90.0020.0214.64
4.3.80.0030.0274.59
4.3.70.0020.0154.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0020.0254.54
4.3.30.0020.0163.31
4.3.20.0010.0173.29
4.3.10.0020.0153.25
4.3.00.0000.0237.11

preferences:
132.1 ms | 1398 KiB | 7 Q