3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Report_Filter { public $And_Or; public $Report_Field_ID; public $Comparison; public $Value; } class Report_Order_By { public $Report_Field_ID; public $Direction; } class Text_Export_Formatting { public $Field_Delimiter = ","; public $Text_Qualifier = "\""; public $Include_Headers = true; public $Apply_Delimiter_To_Headers = true; public $Apply_Qualifier_To_Headers = true; public $Fixed_Width = false; public $Fixed_Widths = array(); // array with Fixed_Width_Info objects } class Fixed_Width_Info { public $Report_Field_ID; public $Column_Width; } class Column_Formatting { public $Report_Field_ID; public $Bold; public $Italic; public $Underline; public $Alignment; public $Data_Type; // Data_Type type public $Summary_Type; // Summary_Type type public $Total; public $Pivot_Table_Field; } class Header_Formatting { public $Report_Field_ID; public $Bold; public $Italic; public $Underline; public $Alignment; } class Excel_Export_Formatting { public $Type; public $Include_Headers; public $Include_Data_Tab; public $Header_Format = array(); // array of Header_Formatting objects public $Column_Format = array(); // array of Column_Formatting objects public $Table_Theming; } class Delivery_Method { public $Type; public $Share_Drive_Info; public $EMail_Info; public $FTP_Info; } class FTP_Information { public $Secure; public $Address; public $Port; public $Path; public $Username; public $Password; } class EMail_Information { public $Recipient; public $CC_Recipient; public $BCC_Recipient; public $Subject; public $Body; } class Share_Drive_Information { public $Address; public $Username; public $Password; } class ReportSettings { public $Report_Platform_ID = null; public $Report_Type_ID = null; public $Zip_File = null; public $Encrypt_File = null; public $AES_Encrypt = null; public $Encrypt_Password = "RANDOM PASSWORD"; public $Export_Filename = null; public $Export_Type = "Text"; public $Report_Field_IDs = array(); // array with native type /* Requires setter methods */ // Setter method: setReportFilters() public $Report_Filters = array(); // array with Report_Filter objects // Setter method: setReportOrderBy() public $Report_Order_Bys = array(); // array with Report_Order_By objects // Setter method: setTextExport() public $Text_Export; // Setter method: setExcelExport() public $Excel_Export; // Setter method: setDeliveryMethod() public $Delivery_Methods; public function setReportFilters($data) { foreach($data as $d) { $o = new Report_Filter(); $o->Report_Field_ID = $d['Report_Field_ID']; $o->Comparison = $d['Comparison']; $o->Value = $d['Value']; $o->And_Or = $d['And_Or']; $this->Report_Filters[] = $o; } } public function setReportOrderBy($data) { foreach($data as $d) { $o = new Report_Order_By(); $o->Report_Field_ID = $d['Report_Field_ID']; $o->Direction = $d['Direction']; $this->Report_Order_Bys[] = $o; } } public function setTextExport($data) { $o = new Text_Export_Formatting(); $o->Field_Delimiter = $data['Field_Delimiter']; $o->Text_Qualifier = $data['Text_Qualifier']; $o->Apply_Delimiter_To_Headers = $data['Apply_Delimiter_To_Headers']; $o->Apply_Qualifier_To_Headers = $data['Apply_Qualifier_To_Headers']; $o->Include_Headers = $data['Include_Headers']; $o->Fixed_Width = $data['Fixed_Width']; if($data['Fixed_Width']) { foreach ($data['Fixed_Widths'] as $w) { $fw = new Fixed_Width_Info(); $fw->Column_Width = $w['Column_Width']; $fw->Report_Field_ID = $w['Report_Field_ID']; $o->Fixed_Widths[] = $fw; } } } public function setExcelExport($data) { $o = new Excel_Export_Formatting(); $o->Type = $data['Type']; $o->Include_Headers = $data['Include_Headers']; $o->Include_Data_Tab = $data['Include_Data_Tab']; if($data['Header_Format']) { foreach ($data['Header_Format'] as $d) { $hf = new Header_Formatting(); $hf->Report_Field_ID = $d['Report_Field_ID']; $hf->Alignment = $d['Alignment']; $hf->Bold = $d['Bold']; $hf->Italic = $d['Italic']; $hf->Underline = $d['Underline']; $o->Column_Format[] = $hf; } } if($data['Column_Format']) { foreach ($data['Column_Format'] as $d) { $cf = new Column_Formatting(); $cf->Report_Field_ID = $d['Report_Field_ID']; $cf->Alignment = $d['Alignment']; $cf->Bold = $d['Bold']; $cf->Italic = $d['Italic']; $cf->Data_Type = $d['Data_Type']; $cf->Underline = $d['Underline']; $cf->Summary_Type = $d['Summary_Type']; $cf->Total = $d['Total']; $o->Column_Format[] = $cf; } } } public function setDeliveryMethod($data) { $o = new Delivery_Method(); $o->Type = $data['Type']; switch ($data['Type']) { case 'ftp' : $f = new FTP_Information(); $f->Address = $data['Address']; $f->Path = $data['Path']; $f->Port = $data['Port']; $f->Username = $data['Username']; $f->Password = $data['Password']; $f->Secure = $data['Secure']; $o->FTP_Info = $f; break; case 'email' : $e = new EMail_Information(); $e->Subject = $data['Subject']; $e->Recipient = $data['Recipient']; $e->CC_Recipient = $data['CC_Recipient']; $e->BCC_Recipient = $data['BCC_Recipient']; $e->Body = $data['Body']; $o->EMail_Info = $e; break; case 'shared': $s = new Share_Drive_Information(); $s->Username = $data['Username']; $s->Password = $data['Password']; $s->Address = $data['Address']; $o->Share_Drive_Info = $s; break; default: } } } ?>

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.0120.00618.39
8.3.50.0100.00521.14
8.3.40.0150.00018.55
8.3.30.0110.00420.35
8.3.20.0040.00420.25
8.3.10.0050.00320.97
8.3.00.0080.00022.43
8.2.180.0100.01016.38
8.2.170.0120.00922.96
8.2.160.0110.00320.29
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0060.00320.79
8.2.110.0000.00919.15
8.2.100.0060.00617.79
8.2.90.0030.00619.21
8.2.80.0000.00817.97
8.2.70.0030.00517.37
8.2.60.0000.00818.03
8.2.50.0050.00318.07
8.2.40.0040.00418.13
8.2.30.0000.00819.60
8.2.20.0040.00417.68
8.2.10.0080.00017.75
8.2.00.0040.00417.70
8.1.270.0050.00323.99
8.1.260.0070.00026.35
8.1.250.0100.01028.09
8.1.240.0150.00020.76
8.1.230.0000.01121.07
8.1.220.0000.00818.77
8.1.210.0090.00018.91
8.1.200.0090.00017.25
8.1.190.0040.00417.52
8.1.180.0050.00518.10
8.1.170.0040.00418.73
8.1.160.0030.00518.79
8.1.150.0040.00418.66
8.1.140.0020.00517.36
8.1.130.0030.00317.78
8.1.120.0000.00717.46
8.1.110.0030.00617.44
8.1.100.0070.00017.42
8.1.90.0040.00417.42
8.1.80.0000.00817.48
8.1.70.0000.00717.43
8.1.60.0030.00617.51
8.1.50.0000.00717.40
8.1.40.0070.00017.53
8.1.30.0040.00417.50
8.1.20.0030.00517.50
8.1.10.0050.00317.39
8.1.00.0040.00417.45
8.0.300.0040.00420.02
8.0.290.0040.00417.04
8.0.280.0050.00218.41
8.0.270.0040.00417.28
8.0.260.0060.00016.80
8.0.250.0000.00717.00
8.0.240.0040.00416.82
8.0.230.0070.00016.82
8.0.220.0030.00316.89
8.0.210.0040.00416.70
8.0.200.0050.00316.95
8.0.190.0000.00816.80
8.0.180.0050.00316.80
8.0.170.0040.00416.77
8.0.160.0040.00416.86
8.0.150.0000.00716.78
8.0.140.0000.00816.73
8.0.130.0000.00613.28
8.0.120.0060.00316.89
8.0.110.0040.00416.86
8.0.100.0040.00416.84
8.0.90.0000.00716.75
8.0.80.0120.00316.84
8.0.70.0040.00416.75
8.0.60.0000.00716.73
8.0.50.0040.00416.72
8.0.30.0130.00616.96
8.0.20.0140.00617.40
8.0.10.0000.00817.02
8.0.00.0060.01316.72
7.4.330.0000.00516.89
7.4.320.0020.00516.47
7.4.300.0000.00816.47
7.4.290.0030.00316.48
7.4.280.0000.00716.53
7.4.270.0000.00816.59
7.4.260.0060.00013.28
7.4.250.0030.00516.38
7.4.240.0000.00816.34
7.4.230.0000.00716.37
7.4.220.0090.00916.51
7.4.210.0050.01016.49
7.4.200.0000.00716.31
7.4.190.0050.00216.58
7.4.160.0100.00716.57
7.4.150.0160.00017.40
7.4.140.0120.00917.86
7.4.130.0060.01216.42
7.4.120.0130.00416.38
7.4.110.0070.01416.64
7.4.100.0090.00916.60
7.4.90.0150.00316.24
7.4.80.0100.01319.39
7.4.70.0070.00816.46
7.4.60.0070.01016.46
7.4.50.0040.00416.43
7.4.40.0030.01422.77
7.4.30.0070.01416.42
7.4.10.0070.01114.70
7.4.00.0040.01415.13
7.3.330.0030.00313.15
7.3.320.0000.00613.14
7.3.310.0050.00316.13
7.3.300.0030.00316.28
7.3.290.0030.01116.29
7.3.280.0070.01016.25
7.3.270.0060.01117.40
7.3.260.0090.01218.24
7.3.250.0140.00716.28
7.3.240.0100.01316.48
7.3.230.0110.00716.39
7.3.210.0090.00816.42
7.3.200.0120.00919.39
7.3.190.0110.01116.34
7.3.180.0100.00616.31
7.3.170.0060.00916.30
7.3.160.0130.00316.61
7.3.130.0070.01014.69
7.3.120.0100.00814.97
7.3.110.0030.01314.93
7.3.100.0030.01014.66
7.3.90.0070.01014.81
7.3.80.0030.00914.75
7.3.70.0120.00014.93
7.3.60.0030.00714.70
7.3.50.0030.00814.71
7.3.40.0000.01114.44
7.3.30.0070.00714.82
7.3.20.0100.00016.46
7.3.10.0060.00916.61
7.3.00.0060.00616.72
7.2.330.0090.01616.62
7.2.320.0090.01316.38
7.2.310.0180.00016.29
7.2.300.0100.00716.49
7.2.290.0070.01016.38
7.2.260.0110.00815.07
7.2.250.0060.01215.13
7.2.240.0040.00815.15
7.2.230.0060.00915.13
7.2.220.0000.00914.79
7.2.210.0060.00615.01
7.2.200.0030.01514.89
7.2.190.0030.00714.90
7.2.180.0080.00415.12
7.2.170.0070.00714.64
7.2.160.0040.00715.00
7.2.150.0070.01016.85
7.2.140.0000.01616.82
7.2.130.0000.01516.57
7.2.120.0090.00316.85
7.2.110.0080.00316.51
7.2.100.0070.00716.76
7.2.90.0100.01016.66
7.2.80.0060.01316.66
7.2.70.0000.01316.55
7.2.60.0100.00316.71
7.2.50.0070.00616.54
7.2.40.0110.00716.55
7.2.30.0040.00716.68
7.2.20.0030.00716.93
7.2.10.0070.01016.96
7.2.00.0030.01218.02
7.1.330.0040.00815.43
7.1.320.0040.00415.83
7.1.310.0030.00615.50
7.1.300.0000.01215.63
7.1.290.0040.00715.53
7.1.280.0060.00615.75
7.1.270.0040.00815.49
7.1.260.0120.00315.46
7.1.250.0030.01015.81
7.1.240.0080.00815.55
7.1.230.0060.00915.57
7.1.220.0100.00315.54
7.1.210.0060.00915.68
7.1.200.0020.01315.61
7.1.190.0040.01115.72
7.1.180.0030.00815.22
7.1.170.0090.00315.43
7.1.160.0070.01115.34
7.1.150.0090.00615.47
7.1.140.0130.00315.59
7.1.130.0040.01115.80
7.1.120.0090.00615.32
7.1.110.0120.00415.77
7.1.100.0060.00416.84
7.1.90.0100.00315.52
7.1.80.0060.00615.57
7.1.70.0010.00816.22
7.1.60.0020.01417.26
7.1.50.0090.00716.12
7.1.40.0000.01215.57
7.1.30.0030.01015.66
7.1.20.0000.01015.55
7.1.10.0020.01315.61
7.1.00.0030.04119.01
7.0.330.0030.01014.93
7.0.320.0070.00315.23
7.0.310.0030.01415.27
7.0.300.0060.00615.48
7.0.290.0040.01215.23
7.0.280.0070.00715.15
7.0.270.0100.00315.41
7.0.260.0100.00615.14
7.0.250.0040.01215.25
7.0.240.0000.01315.13
7.0.230.0030.00714.96
7.0.220.0000.01315.09
7.0.210.0070.00715.30
7.0.200.0100.00315.94
7.0.190.0030.00915.18
7.0.180.0000.01515.25
7.0.170.0060.00915.38
7.0.160.0090.00615.21
7.0.150.0060.00615.30
7.0.140.0020.04418.48
7.0.130.0030.01315.20
7.0.120.0100.00315.08
7.0.110.0040.00815.16
7.0.100.0220.03717.60
7.0.90.0200.04117.46
7.0.80.0150.04817.63
7.0.70.0200.04217.56
7.0.60.0170.02317.58
7.0.50.0130.04517.72
7.0.40.0010.04116.55
7.0.30.0080.04716.63
7.0.20.0070.04316.65
7.0.10.0050.04116.63
7.0.00.0080.04616.56
5.6.400.0080.00314.20
5.6.390.0060.00914.45
5.6.380.0030.00614.51
5.6.370.0080.00414.09
5.6.360.0000.01314.52
5.6.350.0040.00414.36
5.6.340.0040.00814.41
5.6.330.0090.00614.23
5.6.320.0090.00614.29
5.6.310.0110.00714.33
5.6.300.0100.00314.54
5.6.290.0000.01014.38
5.6.280.0050.04017.75
5.6.270.0100.00614.38
5.6.260.0070.00314.13
5.6.250.0100.04317.41
5.6.240.0110.03817.40
5.6.230.0120.02717.42
5.6.220.0060.04517.53
5.6.210.0050.03217.37
5.6.200.0120.03417.62
5.6.190.0070.04417.64
5.6.180.0020.04917.64
5.6.170.0090.04717.55
5.6.160.0080.04317.57
5.6.150.0130.03617.63
5.6.140.0030.04817.61
5.6.130.0150.04217.69
5.6.120.0070.04517.68
5.6.110.0050.03317.60
5.6.100.0070.04317.70
5.6.90.0070.03917.52
5.6.80.0070.04217.30
5.6.70.0110.04217.29
5.6.60.0110.04917.32
5.6.50.0030.04917.21
5.6.40.0100.03517.20
5.6.30.0090.02817.30
5.6.20.0080.02917.39
5.6.10.0070.04717.43
5.6.00.0100.04017.37
5.5.380.0080.03917.44
5.5.370.0100.04217.23
5.5.360.0070.04517.32
5.5.350.0100.04017.16
5.5.340.0050.04217.33
5.5.330.0050.04617.46
5.5.320.0100.04117.43
5.5.310.0050.03817.41
5.5.300.0110.03217.36
5.5.290.0150.03717.39
5.5.280.0060.04317.47
5.5.270.0060.02617.47
5.5.260.0100.03617.44
5.5.250.0100.04217.31
5.5.240.0030.03216.98
5.5.230.0050.03817.10
5.5.220.0030.03217.16
5.5.210.0090.02617.05
5.5.200.0090.04217.13
5.5.190.0020.04417.32
5.5.180.0100.02917.22
5.5.170.0030.00914.21
5.5.160.0120.03717.18
5.5.150.0090.04117.21
5.5.140.0070.04217.12
5.5.130.0080.04217.13
5.5.120.0060.03317.02
5.5.110.0080.04517.18
5.5.100.0120.04016.99
5.5.90.0070.03617.20
5.5.80.0100.02317.24
5.5.70.0030.04616.96
5.5.60.0090.03917.16
5.5.50.0050.04317.14
5.5.40.0110.04017.14
5.5.30.0070.03417.13
5.5.20.0100.04117.02
5.5.10.0110.03817.11
5.5.00.0090.02116.96
5.4.450.0050.04414.98
5.4.440.0110.02815.12
5.4.430.0110.03515.13
5.4.420.0030.04515.09
5.4.410.0050.02515.16
5.4.400.0090.03714.79
5.4.390.0070.04014.99
5.4.380.0100.03715.04
5.4.370.0020.04314.80
5.4.360.0020.04514.83
5.4.350.0050.04314.84
5.4.340.0050.04215.12
5.4.330.0040.00410.82
5.4.320.0090.03914.86
5.4.310.0000.04614.86
5.4.300.0040.04414.72
5.4.290.0020.03014.77
5.4.280.0070.04014.87
5.4.270.0070.03515.00
5.4.260.0130.03214.79
5.4.250.0060.03814.81
5.4.240.0080.03714.87
5.4.230.0050.04315.10
5.4.220.0050.04414.94
5.4.210.0080.04215.10
5.4.200.0080.03914.97
5.4.190.0070.02515.07
5.4.180.0050.04015.01
5.4.170.0050.04014.81
5.4.160.0100.03714.92
5.4.150.0070.04714.74
5.4.140.0060.04313.82
5.4.130.0020.04413.59
5.4.120.0050.04113.62
5.4.110.0030.03313.67
5.4.100.0060.03813.53
5.4.90.0030.04413.63
5.4.80.0100.03713.71
5.4.70.0030.04213.68
5.4.60.0120.03613.74
5.4.50.0030.03613.41
5.4.40.0050.03913.73
5.4.30.0080.03213.69
5.4.20.0050.02813.69
5.4.10.0030.02413.72
5.4.00.0020.02413.38
5.3.290.0060.03312.64
5.3.280.0050.03412.57
5.3.270.0090.03512.58
5.3.260.0000.04812.50
5.3.250.0080.03712.54
5.3.240.0070.03012.51
5.3.230.0090.03812.58
5.3.220.0050.04012.46
5.3.210.0030.03612.53
5.3.200.0050.03812.48
5.3.190.0030.02912.55
5.3.180.0120.03312.49
5.3.170.0050.04612.49
5.3.160.0030.03612.63
5.3.150.0050.03812.59
5.3.140.0020.04612.52
5.3.130.0080.04212.52
5.3.120.0080.02312.59
5.3.110.0030.02212.58
5.3.100.0050.02012.24
5.3.90.0030.02212.38
5.3.80.0030.02312.20
5.3.70.0050.02112.22
5.3.60.0060.03512.32
5.3.50.0040.01711.96
5.3.40.0050.02012.18
5.3.30.0000.02812.15
5.3.20.0030.01812.02
5.3.10.0000.02611.88
5.3.00.0080.03211.95
5.2.170.0030.03011.67
5.2.160.0030.02711.67
5.2.150.0000.03011.67
5.2.140.0070.02311.67
5.2.130.0070.02711.67
5.2.120.0000.03011.67
5.2.110.0030.03011.67
5.2.100.0070.03011.67
5.2.90.0000.04011.67
5.2.80.0030.03311.67
5.2.70.0030.04011.67
5.2.60.0030.02711.67
5.2.50.0030.03011.67
5.2.40.0000.04011.67
5.2.30.0000.03011.67
5.2.20.0000.03311.67
5.2.10.0000.04011.67
5.2.00.0100.02311.67
5.1.60.0000.05711.67
5.1.50.0070.01711.67
5.1.40.0000.02711.67
5.1.30.0030.02311.67
5.1.20.0000.02711.67
5.1.10.0030.04011.67
5.1.00.0000.03011.67
5.0.50.0030.02011.67
5.0.40.0000.02311.67
5.0.30.0000.03311.67
5.0.20.0000.04711.67
5.0.10.0000.01711.67
5.0.00.0000.02711.67
4.4.90.0000.01711.67
4.4.80.0000.01711.67
4.4.70.0000.01711.67
4.4.60.0030.02711.67
4.4.50.0000.01311.67
4.4.40.0030.03711.67
4.4.30.0100.02711.67
4.4.20.0070.01011.67
4.4.10.0030.02711.67
4.4.00.0030.02011.67
4.3.110.0000.01711.67
4.3.100.0000.01711.67
4.3.90.0000.02311.67
4.3.80.0030.04011.67
4.3.70.0070.01011.67
4.3.60.0030.01011.67
4.3.50.0000.01711.67
4.3.40.0000.02011.67
4.3.30.0000.01311.67
4.3.20.0000.01311.67
4.3.10.0000.01311.67
4.3.00.0000.01311.67

preferences:
50.41 ms | 400 KiB | 5 Q