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(); */ } }

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.0070.00716.47
8.3.50.0100.00923.01
8.3.40.0140.00718.76
8.3.30.0140.00018.96
8.3.20.0060.00320.39
8.3.10.0040.00423.71
8.3.00.0050.00319.00
8.2.180.0110.00716.88
8.2.170.0040.01122.96
8.2.160.0070.01020.47
8.2.150.0030.00624.18
8.2.140.0000.00724.66
8.2.130.0100.00726.16
8.2.120.0040.00420.87
8.2.110.0060.00322.10
8.2.100.0070.00718.09
8.2.90.0000.00918.92
8.2.80.0060.00317.97
8.2.70.0000.00817.38
8.2.60.0040.00417.91
8.2.50.0040.00418.07
8.2.40.0000.00718.16
8.2.30.0000.00718.05
8.2.20.0060.00617.56
8.2.10.0040.00418.04
8.2.00.0070.00017.73
8.1.280.0140.00325.92
8.1.270.0040.00423.97
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.91
8.1.230.0110.00019.15
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0030.00522.06
8.1.150.0040.00419.04
8.1.140.0000.00717.51
8.1.130.0030.00317.83
8.1.120.0030.00317.50
8.1.110.0040.00417.52
8.1.100.0000.00717.54
8.1.90.0060.00317.39
8.1.80.0030.00417.40
8.1.70.0000.00717.44
8.1.60.0030.00517.66
8.1.50.0040.00417.57
8.1.40.0040.00417.45
8.1.30.0020.00517.70
8.1.20.0050.00217.78
8.1.10.0060.00317.52
8.1.00.0040.00417.38
8.0.300.0050.00318.77
8.0.290.0070.00016.88
8.0.280.0000.00818.46
8.0.270.0020.00517.30
8.0.260.0030.00317.29
8.0.250.0000.00716.92
8.0.240.0000.00816.89
8.0.230.0040.00416.82
8.0.220.0030.00316.84
8.0.210.0000.00816.75
8.0.200.0080.00017.00
8.0.190.0040.00416.82
8.0.180.0040.00416.86
8.0.170.0050.00316.88
8.0.160.0000.00716.82
8.0.150.0080.00016.77
8.0.140.0050.00216.73
8.0.130.0030.00313.35
8.0.120.0060.00316.80
8.0.110.0000.00716.79
8.0.100.0040.00416.90
8.0.90.0040.00416.75
8.0.80.0090.00916.88
8.0.70.0000.00816.75
8.0.60.0000.00816.82
8.0.50.0020.00516.94
8.0.30.0160.00517.05
8.0.20.0120.00817.40
8.0.10.0070.00016.97
8.0.00.0130.00516.69
7.4.330.0000.00615.15
7.4.320.0030.00316.66
7.4.300.0000.00616.45
7.4.290.0000.00716.60
7.4.280.0040.00816.54
7.4.270.0030.00316.67
7.4.260.0000.00816.50
7.4.250.0000.00716.60
7.4.240.0030.00416.56
7.4.230.0070.00016.44
7.4.220.0090.00916.60
7.4.210.0070.01416.65
7.4.200.0040.00416.57
7.4.160.0160.00616.41
7.4.150.0100.01017.40
7.4.140.0090.00817.86
7.4.130.0070.00916.51
7.4.120.0130.00816.44
7.4.110.0070.01016.55
7.4.100.0060.01216.43
7.4.90.0070.01016.29
7.4.80.0150.00319.39
7.4.70.0120.00416.56
7.4.60.0100.00716.66
7.4.50.0060.00016.52
7.4.40.0030.01616.33
7.4.30.0090.00616.50
7.4.00.0110.00714.91
7.3.330.0060.00013.19
7.3.320.0060.00013.30
7.3.310.0030.00316.31
7.3.300.0000.00716.29
7.3.290.0100.00316.31
7.3.280.0080.00916.30
7.3.270.0080.00817.40
7.3.260.0070.01116.27
7.3.250.0140.00316.48
7.3.240.0070.01016.24
7.3.230.0140.00316.51
7.3.210.0070.01116.46
7.3.200.0030.01919.39
7.3.190.0030.01316.62
7.3.180.0060.00916.51
7.3.170.0140.00216.46
7.3.160.0060.00916.68
7.2.330.0180.00616.46
7.2.320.0110.00616.69
7.2.310.0070.01016.68
7.2.300.0060.01316.66
7.2.290.0090.00916.60
7.2.00.0000.01519.42
7.1.100.0000.01118.03
7.1.70.0030.00917.31
7.1.60.0110.01419.40
7.1.50.0170.01734.82
7.1.00.0070.07322.40
7.0.200.0910.01014.63
7.0.140.0070.07322.18
7.0.60.0070.08019.87
7.0.50.0070.08317.90
7.0.40.0170.06720.15
7.0.30.0200.03720.07
7.0.20.0230.06320.24
7.0.10.0100.06320.07
7.0.00.0100.08720.05
5.6.280.0070.07020.87
5.6.210.0000.07320.58
5.6.200.0070.05318.19
5.6.190.0130.06020.77
5.6.180.0270.06720.47
5.6.170.0270.03020.48
5.6.160.0070.07720.48
5.6.150.0030.08318.18
5.6.140.0030.08318.21
5.6.130.0130.08018.14
5.6.120.0070.08721.00
5.6.110.0030.08321.14
5.6.100.0130.05020.98
5.6.90.0030.08720.98
5.6.80.0030.05720.39
5.5.350.0230.02720.46
5.5.340.0030.08717.94
5.5.330.0030.08320.57
5.5.320.0270.06320.25
5.5.310.0270.06720.27
5.5.300.0070.08018.08
5.5.290.0130.06017.98
5.5.280.0100.03720.78
5.5.270.0100.08020.78
5.5.260.0070.04720.97
5.5.250.0100.07720.56
5.5.240.0070.03720.29
5.4.450.0600.06019.59
5.4.440.0200.05719.42
5.4.430.0300.07019.26
5.4.420.0170.05319.41
5.4.410.0170.05719.29
5.4.400.0130.05318.90
5.4.390.0200.05019.21
5.4.380.0100.06018.80
5.4.370.0000.05718.73
5.4.360.0070.03718.43
5.4.350.0100.05112.04
5.4.340.0060.03612.03
5.4.320.0160.03612.52
5.4.310.0180.03912.39
5.4.300.0130.03812.52
5.4.290.0110.04112.51
5.4.280.0150.04212.41
5.4.270.0070.03812.41
5.4.260.0220.04212.41
5.4.250.0340.04812.41
5.4.240.0100.03712.41
5.4.230.0080.04712.40
5.4.220.0170.03612.41
5.4.210.0190.04412.40
5.4.200.0160.04012.40
5.4.190.0160.03512.40
5.4.180.0090.04712.40
5.4.170.0070.03812.41
5.4.160.0070.04012.41
5.4.150.0080.04312.40
5.4.140.0140.03112.09
5.4.130.0050.04512.08
5.4.120.0050.03812.03
5.4.110.0070.03512.03
5.4.100.0060.03712.03
5.4.90.0110.03112.03
5.4.80.0070.04012.02
5.4.70.0060.03512.02
5.4.60.0140.04012.02
5.4.50.0100.04612.02
5.4.40.0070.04912.01
5.4.30.0050.03712.01
5.4.20.0070.03412.00
5.4.10.0070.03712.01
5.4.00.0080.03211.50
5.3.290.0060.04212.80
5.3.280.0080.03712.70
5.3.270.0090.03712.73
5.3.260.0080.03712.72
5.3.250.0080.03712.72
5.3.240.0080.03412.72
5.3.230.0040.03912.71
5.3.220.0060.03612.68
5.3.210.0110.03512.68
5.3.200.0090.05412.68
5.3.190.0070.03812.68
5.3.180.0070.03612.67
5.3.170.0090.04012.67
5.3.160.0040.03812.68
5.3.150.0070.04312.68
5.3.140.0130.03612.66
5.3.130.0080.05412.66
5.3.120.0040.04212.66
5.3.110.0060.04012.66
5.3.100.0040.03812.14
5.3.90.0070.05212.11
5.3.80.0090.03812.11
5.3.70.0080.03712.11
5.3.60.0080.04512.09
5.3.50.0080.04812.04
5.3.40.0060.03612.04
5.3.30.0080.03212.00
5.3.20.0070.03411.78
5.3.10.0080.03211.74
5.3.00.0070.03411.73
5.2.170.0040.0319.24
5.2.160.0040.0299.24
5.2.150.0040.0309.24
5.2.140.0040.0319.23
5.2.130.0070.0279.20
5.2.120.0070.0259.20
5.2.110.0070.0279.20
5.2.100.0040.0319.20
5.2.90.0010.0329.20
5.2.80.0090.0269.19
5.2.70.0030.0329.19
5.2.60.0040.0319.15
5.2.50.0050.0339.11
5.2.40.0040.0309.09
5.2.30.0060.0289.07
5.2.20.0070.0329.05
5.2.10.0050.0298.96
5.2.00.0060.0318.82
5.1.60.0050.0318.11
5.1.50.0040.0248.11
5.1.40.0060.0238.08
5.1.30.0030.0288.43
5.1.20.0030.0288.45
5.1.10.0030.0298.19
5.1.00.0050.0268.18
5.0.50.0050.0206.66
5.0.40.0060.0196.52
5.0.30.0040.0316.33
5.0.20.0050.0186.30
5.0.10.0010.0226.29
5.0.00.0030.0316.28
4.4.90.0030.0174.78
4.4.80.0030.0164.76
4.4.70.0010.0174.75
4.4.60.0020.0164.76
4.4.50.0030.0154.77
4.4.40.0010.0274.71
4.4.30.0020.0164.76
4.4.20.0030.0154.84
4.4.10.0010.0214.85
4.4.00.0050.0254.75
4.3.110.0010.0174.67
4.3.100.0010.0184.67
4.3.90.0030.0144.63
4.3.80.0050.0224.58
4.3.70.0020.0154.63
4.3.60.0010.0164.63
4.3.50.0070.0114.63
4.3.40.0040.0314.54
4.3.30.0020.0183.31
4.3.20.0000.0183.29
4.3.10.0020.0153.25
4.3.00.0100.0237.13

preferences:
46.07 ms | 400 KiB | 5 Q