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)
8.3.60.0060.00916.75
8.3.50.0120.00722.84
8.3.40.0150.00618.97
8.3.30.0030.01119.10
8.3.20.0000.00820.18
8.3.10.0040.00423.50
8.3.00.0080.00019.51
8.2.180.0100.01316.75
8.2.170.0140.00322.96
8.2.160.0110.00320.22
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0090.00926.16
8.2.120.0080.00021.02
8.2.110.0060.00320.47
8.2.100.0070.00418.16
8.2.90.0080.00019.09
8.2.80.0030.00517.97
8.2.70.0000.00817.50
8.2.60.0040.00417.92
8.2.50.0040.00418.07
8.2.40.0080.00019.73
8.2.30.0060.00318.04
8.2.20.0060.00317.79
8.2.10.0060.00317.99
8.2.00.0040.00417.70
8.1.280.0040.01525.92
8.1.270.0030.00523.92
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00021.94
8.1.230.0110.00018.82
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0090.00017.23
8.1.180.0050.00318.10
8.1.170.0000.00818.65
8.1.160.0000.00821.92
8.1.150.0040.00418.97
8.1.140.0000.00717.36
8.1.130.0030.00317.85
8.1.120.0000.00717.40
8.1.110.0050.00317.46
8.1.100.0040.00417.45
8.1.90.0090.00017.46
8.1.80.0040.00417.55
8.1.70.0020.00517.50
8.1.60.0040.00417.51
8.1.50.0000.00817.55
8.1.40.0090.00017.57
8.1.30.0000.00817.68
8.1.20.0080.00017.64
8.1.10.0000.00817.59
8.1.00.0000.00817.59
8.0.300.0040.00418.77
8.0.290.0050.00316.63
8.0.280.0070.00018.35
8.0.270.0070.00017.27
8.0.260.0040.00417.21
8.0.250.0030.00316.86
8.0.240.0040.00416.97
8.0.230.0070.00016.92
8.0.220.0070.00016.97
8.0.210.0000.00716.93
8.0.200.0000.00616.94
8.0.190.0040.00416.95
8.0.180.0080.00016.84
8.0.170.0080.00016.92
8.0.160.0000.00716.86
8.0.150.0070.00016.87
8.0.140.0040.00416.88
8.0.130.0000.00613.38
8.0.120.0040.00416.80
8.0.110.0070.00016.82
8.0.100.0040.00416.98
8.0.90.0000.00717.00
8.0.80.0040.01816.95
8.0.70.0000.00816.82
8.0.60.0000.00716.95
8.0.50.0000.00716.96
8.0.30.0080.01316.91
8.0.20.0090.01017.40
8.0.10.0040.00417.11
8.0.00.0090.00916.90
7.4.330.0000.00615.02
7.4.320.0070.00016.64
7.4.300.0000.00616.55
7.4.290.0040.00416.55
7.4.280.0030.00716.63
7.4.270.0070.00016.40
7.4.260.0030.00616.51
7.4.250.0070.00016.49
7.4.240.0050.00216.58
7.4.230.0030.00316.73
7.4.220.0040.01516.59
7.4.210.0150.00316.53
7.4.200.0080.00016.52
7.4.160.0100.00716.43
7.4.150.0150.00917.40
7.4.140.0060.01117.86
7.4.130.0110.00716.56
7.4.120.0160.00516.54
7.4.110.0060.01116.69
7.4.100.0130.01016.54
7.4.90.0090.00916.70
7.4.80.0070.01319.39
7.4.70.0140.00316.51
7.4.60.0100.00716.68
7.4.50.0050.00316.48
7.4.40.0110.01116.61
7.4.30.0100.00616.67
7.4.00.0060.01015.25
7.3.330.0030.00313.36
7.3.320.0030.00513.27
7.3.310.0040.00416.30
7.3.300.0040.00416.39
7.3.290.0000.01316.40
7.3.280.0110.00616.38
7.3.270.0140.00317.40
7.3.260.0130.00916.60
7.3.250.0080.00816.49
7.3.240.0140.00716.33
7.3.230.0120.00616.46
7.3.210.0090.00916.65
7.3.200.0130.00319.39
7.3.190.0160.00616.70
7.3.180.0040.01116.39
7.3.170.0110.00616.54
7.3.160.0060.00916.59
7.2.330.0090.01016.77
7.2.320.0090.00916.52
7.2.310.0160.00316.65
7.2.300.0070.01016.69
7.2.290.0040.01516.78
7.2.60.0080.00816.45
7.2.00.0040.00719.38
7.1.200.0110.00415.70
7.1.100.0040.00817.99
7.1.70.0100.00317.13
7.1.60.0090.01519.40
7.1.50.0240.01234.69
7.1.00.0070.07322.30
7.0.200.0730.00614.95
7.0.140.0070.09722.18
7.0.60.0030.08319.98
7.0.50.0030.04017.93
7.0.40.0070.07719.97
7.0.30.0370.06720.15
7.0.20.0230.07720.17
7.0.10.0030.04320.28
7.0.00.0030.04320.15
5.6.280.0100.06720.92
5.6.210.0100.07320.57
5.6.200.0100.08318.16
5.6.190.0170.05720.41
5.6.180.0200.05720.58
5.6.170.0230.07320.57
5.6.160.0070.04020.62
5.6.150.0030.07718.19
5.6.140.0070.08018.19
5.6.130.0130.07718.13
5.6.120.0030.04321.14
5.6.110.0100.06021.04
5.6.100.0170.08020.98
5.6.90.0030.09020.89
5.6.80.0130.07720.46
5.6.70.4570.03720.36
5.5.350.0230.08320.54
5.5.340.0030.07317.96
5.5.330.0070.04020.53
5.5.320.0170.05320.25
5.5.310.0130.04720.27
5.5.300.0070.04017.99
5.5.290.0130.07318.09
5.5.280.0130.07320.79
5.5.270.0100.04020.86
5.5.260.0130.08020.81
5.5.250.0000.04320.61
5.5.240.0200.08320.29
5.4.450.0800.06319.63
5.4.440.0170.06019.60
5.4.430.0170.05719.64
5.4.420.0230.05019.54
5.4.410.0100.06319.26
5.4.400.0130.05718.98
5.4.390.0170.05719.32
5.4.380.0100.05718.80
5.4.370.0030.05718.73
5.4.360.0070.04318.55
5.4.350.0060.04812.04
5.4.340.0100.03712.04
5.4.320.0070.03612.52
5.4.310.0070.03712.52
5.4.300.0050.03712.53
5.4.290.0080.03612.52
5.4.280.0050.03712.41
5.4.270.0080.03712.42
5.4.260.0100.04912.41
5.4.250.0090.05012.42
5.4.240.0070.03512.41
5.4.230.0050.04512.40
5.4.220.0090.04312.40
5.4.210.0070.04612.41
5.4.200.0080.03712.41
5.4.190.0100.04512.40
5.4.180.0060.03712.41
5.4.170.0090.04512.41
5.4.160.0070.03512.41
5.4.150.0040.04112.40
5.4.140.0070.03712.09
5.4.130.0100.03212.07
5.4.120.0040.03812.04
5.4.110.0070.03412.04
5.4.100.0090.03212.03
5.4.90.0060.03612.03
5.4.80.0040.03912.04
5.4.70.0070.03812.03
5.4.60.0050.03512.03
5.4.50.0030.03812.03
5.4.40.0050.03512.02
5.4.30.0060.04212.02
5.4.20.0050.03712.01
5.4.10.0080.03312.02
5.4.00.0060.03511.51
5.3.290.0030.04212.80
5.3.280.0050.03912.71
5.3.270.0080.03712.72
5.3.260.0060.03812.72
5.3.250.0040.03812.72
5.3.240.0040.03812.72
5.3.230.0090.03412.71
5.3.220.0040.03912.68
5.3.210.0050.03912.68
5.3.200.0040.03812.68
5.3.190.0080.03612.68
5.3.180.0060.03712.68
5.3.170.0100.03212.68
5.3.160.0060.03612.67
5.3.150.0100.03412.67
5.3.140.0080.03712.67
5.3.130.0090.03712.66
5.3.120.0050.03912.66
5.3.110.0090.03512.66
5.3.100.0060.03712.14
5.3.90.0060.03912.13
5.3.80.0040.03812.12
5.3.70.0040.03912.12
5.3.60.0030.03912.10
5.3.50.0070.03612.05
5.3.40.0060.03712.05
5.3.30.0070.03412.01
5.3.20.0060.03511.79
5.3.10.0080.03311.75
5.3.00.0030.03911.74
5.2.170.0070.0299.25
5.2.160.0040.0299.25
5.2.150.0040.0329.25
5.2.140.0040.0349.25
5.2.130.0060.0279.21
5.2.120.0040.0299.21
5.2.110.0030.0309.21
5.2.100.0040.0299.21
5.2.90.0080.0279.21
5.2.80.0040.0309.20
5.2.70.0040.0309.20
5.2.60.0030.0319.16
5.2.50.0040.0319.13
5.2.40.0020.0319.10
5.2.30.0050.0309.07
5.2.20.0030.0329.07
5.2.10.0080.0328.97
5.2.00.0080.0378.84
5.1.60.0050.0248.13
5.1.50.0040.0258.12
5.1.40.0020.0268.11
5.1.30.0010.0298.45
5.1.20.0050.0268.47
5.1.10.0030.0298.20
5.1.00.0070.0328.20
5.0.50.0050.0186.68
5.0.40.0020.0216.54
5.0.30.0030.0316.36
5.0.20.0020.0216.32
5.0.10.0040.0196.30
5.0.00.0030.0316.30
4.4.90.0030.0164.77
4.4.80.0040.0144.76
4.4.70.0020.0214.76
4.4.60.0020.0184.75
4.4.50.0020.0164.77
4.4.40.0010.0264.71
4.4.30.0020.0164.76
4.4.20.0050.0134.85
4.4.10.0040.0144.85
4.4.00.0010.0264.75
4.3.110.0040.0144.67
4.3.100.0030.0144.67
4.3.90.0030.0144.63
4.3.80.0010.0264.58
4.3.70.0030.0184.63
4.3.60.0050.0134.63
4.3.50.0020.0174.63
4.3.40.0010.0264.54
4.3.30.0010.0173.31
4.3.20.0010.0173.29
4.3.10.0020.0163.25
4.3.00.0000.0237.14

preferences:
47.97 ms | 400 KiB | 5 Q