3v4l.org

run code in 300+ PHP versions simultaneously
<?php $table_template = array( 'db' => array( 'from' => 'CASE_ALIGMENT_0', 'select' => array( 'YR' => FALSE, 'REFERENCE' => "upper(###)", 'DESCRIPTION' => "initcap(###)", 'SUPPLIER_LOWER' => "initcap(###)", 'COUNTRY_LOWER' => "upper(###)", 'AMOUNT_LOWER' => '###', 'SUPPLIER_ALIG' => "initcap(###)", 'COUNTRY_ALIG' => "upper(###)", 'AMOUNT_ALIG' => '###', 'DIFF_PERC' => '###', 'DIFF' => '###', ), 'where' => array( 'YR' => array('LIKE', "%" ) ), ), 'filters' => array( 'year_min' => array( 'type' => 'year', 'description' => 'From year', 'where' => array( 'YR' => array( '>=', '2013' ) ), ), 'year_max' => array( 'type' => 'year', 'description' => 'To year', 'where' => array( 'YR' => array( '<=', '2013' ) ), ), ), 'dynamic' => TRUE, 'editable' => FALSE, 'number' => 6, 'title' => "Cases of alignment for contracts and orders<br><small>since 1994</small>", 'subtitle' => NULL, // TODO: Build graph queries and use them 'graph' => NULL, // array('query' => "select YR, to_char(to_number(sum(AMOUNT_ALIG)), '999G999G999', 'NLS_NUMERIC_CHARACTERS = '', ''') from CASE_ALIGMENT_0 group by YR order by YR;"), 'headers' => array( array( 'from_db' => FALSE, 'layout' => array( array( 'colspan' => 2, 'class' => "text-center" ), array( 'colspan' => 3, 'class' => "text-center border-left" ), array( 'colspan' => 3, 'class' => "text-center border-left" ), array( 'colspan' => 2, 'class' => "text-center border-left" ), ), 'data' => array( "<h3>Enquiry</h3>", "<h3>Lowest bid</h3>", "<h3>Alignment</h3>", "<h3>Difference</h3>", ), ), array( 'from_db' => TRUE, 'layout' => array( 'REFERENCE' => array( 'class' => "text-center" ), 'DESCRIPTION' => array( 'class' => "text-center" ), 'SUPPLIER_LOWER' => array( 'class' => "text-center border-left" ), 'COUNTRY_LOWER' => array( 'class' => "text-center" ), 'AMOUNT_LOWER' => array( 'class' => "text-center" ), 'SUPPLIER_ALIG' => array( 'class' => "text-center border-left" ), 'COUNTRY_ALIG' => array( 'class' => "text-center" ), 'AMOUNT_ALIG' => array( 'class' => "text-center" ), 'DIFF_PERC' => array( 'class' => "text-center border-left" ), 'DIFF' => array( 'class' => "text-center" ), ), 'data' => array( 'REFERENCE' => "Reference", 'DESCRIPTION' => "Description", 'SUPPLIER_LOWER' => "Supplier", 'COUNTRY_LOWER' => "Country", 'AMOUNT_LOWER' => "Bid (CHF)", 'SUPPLIER_ALIG' => "Supplier", 'COUNTRY_ALIG' => "Country", 'AMOUNT_ALIG' => "Initial bid (CHF)", 'DIFF_PERC' => "%", 'DIFF' => "CHF", ), ), ), 'body' => array( 'layout' => array( 'REFERENCE' => array( 'class' => "no-wrap" ), 'DESCRIPTION' => array( 'class' => "text-min-width" ), 'SUPPLIER_LOWER' => array( 'class' => "border-left" ), 'COUNTRY_LOWER' => array( 'class' => 'no-wrap' ), 'AMOUNT_LOWER' => array( 'class' => "text-right no-wrap", 'data-format' => 'currency' ), 'SUPPLIER_ALIG' => array( 'class' => "border-left" ), 'COUNTRY_ALIG' => array( 'class' => 'no-wrap' ), 'AMOUNT_ALIG' => array( 'class' => "text-right no-wrap", 'data-format' => 'currency' ), 'DIFF_PERC' => array( 'class' => "text-right no-wrap border-left", 'data-format' => 'percentage' ), 'DIFF' => array( 'class' => "text-right no-wrap", 'data-format' => 'currency' ), ), 'format' => array( 'AMOUNT_LOWER' => array( 'format_french_number', 'format_no_decimals' ), 'AMOUNT_ALIG' => array( 'format_french_number', 'format_no_decimals' ), 'COUNTRY_LOWER' => 'format_line_break', 'COUNTRY_ALIG' => 'format_line_break', 'DIFF_PERC' => 'format_percent', 'DIFF' => array( 'format_french_number', 'format_no_decimals' ), ), ), 'footers' => array( array( 'from_db' => TRUE, 'layout' => NULL, 'data' => array( 'REFERENCE' => "Reference", 'DESCRIPTION' => "Description", 'SUPPLIER_LOWER' => "Supplier", 'COUNTRY_LOWER' => "Country", 'AMOUNT_LOWER' => "Bid (CHF)", 'SUPPLIER_ALIG' => "Supplier", 'COUNTRY_ALIG' => "Country", 'AMOUNT_ALIG' => "Initial bid (CHF)", 'DIFF_PERC' => "%", 'DIFF' => "CHF", ), ), ), ); echo json_encode($table_template);

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.0140.00718.18
8.3.50.0150.00521.79
8.3.40.0110.00418.86
8.3.30.0060.01219.04
8.3.20.0040.00420.16
8.3.10.0050.00320.36
8.3.00.0040.00419.25
8.2.180.0150.00318.43
8.2.170.0170.00022.96
8.2.160.0090.00620.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00419.84
8.2.110.0060.00320.40
8.2.100.0040.00818.16
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0090.00318.07
8.2.40.0050.00319.95
8.2.30.0070.00017.98
8.2.20.0030.00517.73
8.2.10.0050.00218.06
8.2.00.0000.00817.67
8.1.280.0040.01125.92
8.1.270.0090.00023.96
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.81
8.1.230.0030.00819.16
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0070.00317.36
8.1.190.0000.00817.11
8.1.180.0050.00318.10
8.1.170.0030.00518.57
8.1.160.0040.00422.02
8.1.150.0030.00618.82
8.1.140.0040.00417.44
8.1.130.0030.00317.74
8.1.120.0000.00717.30
8.1.110.0030.00617.36
8.1.100.0050.00217.31
8.1.90.0050.00317.40
8.1.80.0040.00417.45
8.1.70.0080.00017.27
8.1.60.0040.00417.52
8.1.50.0040.00417.46
8.1.40.0040.00417.43
8.1.30.0030.00617.41
8.1.20.0030.00817.48
8.1.10.0070.00017.53
8.1.00.0000.00817.45
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0040.00418.45
8.0.270.0040.00417.22
8.0.260.0030.00317.31
8.0.250.0070.00016.99
8.0.240.0000.00716.92
8.0.230.0030.00316.90
8.0.220.0000.00616.90
8.0.210.0030.00316.73
8.0.200.0040.00416.90
8.0.190.0030.00316.96
8.0.180.0020.00516.91
8.0.170.0000.00916.84
8.0.160.0040.00416.91
8.0.150.0000.00716.68
8.0.140.0030.00516.67
8.0.130.0070.00013.33
8.0.120.0040.00416.82
8.0.110.0030.00516.77
8.0.100.0080.00016.73
8.0.90.0000.00716.87
8.0.80.0110.01116.79
8.0.70.0000.00816.78
8.0.60.0040.00416.82
8.0.50.0000.00816.66
8.0.30.0110.00816.99
8.0.20.0030.01617.40
8.0.10.0070.00016.82
8.0.00.0080.00916.80
7.4.330.0030.00315.00
7.4.320.0030.00316.55
7.4.300.0070.00016.43
7.4.290.0030.00316.40
7.4.280.0000.01116.52
7.4.270.0030.00316.55
7.4.260.0030.00316.46
7.4.250.0040.00416.39
7.4.240.0040.00416.54
7.4.230.0030.00316.53
7.4.220.0060.01116.35
7.4.210.0040.01116.55
7.4.200.0070.00016.61
7.4.160.0080.00816.60
7.4.150.0100.01417.40
7.4.140.0070.01017.86
7.4.130.0080.00816.62
7.4.120.0100.00816.51
7.4.110.0060.01016.48
7.4.100.0170.00716.43
7.4.90.0060.01216.60
7.4.80.0060.01119.39
7.4.70.0120.00616.39
7.4.60.0080.00816.57
7.4.50.0000.00516.34
7.4.40.0130.00316.48
7.4.30.0080.00816.67
7.4.00.0060.01114.83
7.3.330.0020.00212.90
7.3.320.0050.00012.88
7.3.310.0040.00416.24
7.3.300.0000.00716.16
7.3.290.0050.00916.13
7.3.280.0100.01116.17
7.3.270.0060.01217.40
7.3.260.0140.00316.22
7.3.250.0080.01516.28
7.3.240.0110.00816.26
7.3.230.0090.00816.45
7.3.210.0130.00316.28
7.3.200.0070.01019.39
7.3.190.0110.00616.33
7.3.180.0040.01416.54
7.3.170.0070.01116.40
7.3.160.0000.01516.23
7.3.120.0020.01114.52
7.3.110.0060.01214.79
7.3.100.0060.01314.75
7.3.90.0080.00814.75
7.3.80.0100.00714.78
7.3.70.0050.00914.78
7.3.60.0100.00414.69
7.3.50.0060.00814.71
7.3.40.0040.01014.61
7.3.30.0060.00614.71
7.3.20.0040.01116.62
7.3.10.0050.00816.24
7.3.00.0070.00716.52
7.2.330.0070.01016.65
7.2.320.0140.00316.57
7.2.310.0130.00416.25
7.2.300.0070.01116.16
7.2.290.0100.00616.32
7.2.250.0050.01515.09
7.2.240.0070.01114.78
7.2.230.0080.01014.84
7.2.220.0070.00714.85
7.2.210.0060.01014.99
7.2.200.0030.00914.86
7.2.190.0070.00714.90
7.2.180.0050.01014.64
7.2.170.0030.01214.86
7.2.130.0080.00616.41
7.2.120.0050.00816.53
7.2.110.0160.00016.29
7.2.100.0070.00516.68
7.2.90.0080.01016.37
7.2.80.0110.00616.81
7.2.70.0000.01416.31
7.2.60.0060.01016.63
7.2.50.0090.00616.42
7.2.40.0050.01016.34
7.2.30.0160.00316.71
7.2.20.0170.00416.33
7.2.10.0140.00316.60
7.2.00.0170.00617.92
7.1.330.0030.01215.79
7.1.320.0050.00515.86
7.1.310.0050.00715.57
7.1.300.0090.00715.70
7.1.290.0040.00815.71
7.1.280.0060.00515.56
7.1.270.0080.00815.64
7.1.260.0020.01015.55
7.1.250.0060.00615.31
7.1.100.0680.00716.16
7.1.70.0000.00916.94
7.1.60.0170.00717.29
7.1.50.0040.01416.90
7.1.00.0030.07722.44
7.0.200.0150.00916.73
7.0.140.0030.06721.95
7.0.90.0070.04019.87
7.0.80.0270.03019.86
7.0.70.0100.04319.98
7.0.60.0070.04719.95
7.0.50.0730.07720.32
7.0.40.0100.08020.14
7.0.30.0200.06320.02
7.0.20.0170.08020.14
7.0.10.0100.08020.08
7.0.00.0070.04320.07
5.6.280.0100.06720.93
5.6.240.0130.03020.58
5.6.230.0030.04320.57
5.6.220.0000.04320.68
5.6.210.0000.04320.59
5.6.200.0100.05021.09
5.6.190.0230.07320.95
5.6.180.0070.07721.08
5.6.170.0070.07021.14
5.6.160.0100.08321.00
5.6.150.0070.08021.12
5.6.140.0070.08321.04
5.6.130.0070.07721.17
5.6.120.0130.07721.20
5.6.110.0130.07021.11
5.6.100.0030.07720.96
5.6.90.0170.03721.04
5.6.80.0030.07020.44
5.6.70.0000.07720.49
5.6.60.0100.06720.52
5.6.50.0100.07020.43
5.6.40.0070.08020.40
5.6.30.0100.08020.40
5.6.20.0070.08020.50
5.6.10.0030.06020.41
5.6.00.0130.07320.49
5.5.380.0070.04020.55
5.5.370.0100.03720.44
5.5.360.0070.04020.54
5.5.350.0030.04020.46
5.5.340.0100.08020.94
5.5.330.0070.08320.93
5.5.320.0100.06020.94
5.5.310.0070.04320.84
5.5.300.0100.07720.80
5.5.290.0130.07020.96
5.5.280.0030.08020.88
5.5.270.0130.07020.82
5.5.260.0070.07320.76
5.5.250.0070.04320.71
5.5.240.0100.07720.31
5.5.230.0070.06320.06
5.5.220.0130.07020.14
5.5.210.0130.07320.31
5.5.200.0000.08320.15
5.5.190.0100.07720.32
5.5.180.0070.07320.27
5.5.160.0070.08320.22
5.5.150.0100.06020.30
5.5.140.0070.08320.30
5.5.130.0100.06720.22
5.5.120.0230.05020.29
5.5.110.0070.08020.29
5.5.100.0000.05320.17
5.5.90.0130.06720.12
5.5.80.0100.04020.01
5.5.70.0070.06720.00
5.5.60.0170.06720.15
5.5.50.0130.06320.20
5.5.40.0100.04720.10
5.5.30.0100.04320.19
5.5.20.0100.08020.06
5.5.10.0070.08020.09
5.5.00.0070.07320.17
5.4.450.0170.07319.40
5.4.440.0030.08719.43
5.4.430.0130.07019.35
5.4.420.0300.05319.44
5.4.410.0130.07019.31
5.4.400.0130.07018.98
5.4.390.0170.06719.03
5.4.380.0070.04019.11
5.4.370.0070.08019.12
5.4.360.0100.07319.03
5.4.350.0070.07019.12
5.4.340.0000.06318.79
5.4.320.0000.06719.05
5.4.310.0230.06318.81
5.4.300.0030.08719.05
5.4.290.0070.07718.78
5.4.280.0030.05019.09
5.4.270.0130.07019.13
5.4.260.0030.05019.02
5.4.250.0130.07019.12
5.4.240.0070.08018.90
5.4.230.0070.06018.80
5.4.220.0030.04319.04
5.4.210.0070.07319.13
5.4.200.0130.07319.11
5.4.190.0070.07019.13
5.4.180.0030.08319.21
5.4.170.0000.05019.14
5.4.160.0030.04718.76
5.4.150.0070.03718.79
5.4.140.0170.07716.37
5.4.130.0030.07716.38
5.4.120.0000.05316.06
5.4.110.0030.04716.39
5.4.100.0070.07316.39
5.4.90.0130.05016.48
5.4.80.0130.05016.21
5.4.70.0100.07716.37
5.4.60.0070.06716.36
5.4.50.0000.04316.29
5.4.40.0070.07716.26
5.4.30.0130.05016.51
5.4.20.0030.06016.34
5.4.10.0000.07316.43
5.4.00.0030.07015.84
5.3.290.0170.06714.66
5.3.280.0100.07014.65
5.3.270.0070.07014.50
5.3.260.0170.06314.63
5.3.250.0030.07314.62
5.3.240.0000.05014.61
5.3.230.0130.06314.46
5.3.220.0070.04714.45
5.3.210.0000.04314.61
5.3.200.0100.07014.57
5.3.190.0070.07714.48
5.3.180.0100.03314.61
5.3.170.0030.08014.63
5.3.160.0130.05714.56
5.3.150.0030.06714.50
5.3.140.0130.06314.60
5.3.130.0070.06714.44
5.3.120.0130.03714.51
5.3.110.0030.06314.59
5.3.100.0100.07314.10
5.3.90.0130.06713.90
5.3.80.0170.05714.06
5.3.70.0170.06014.04
5.3.60.0170.06714.04
5.3.50.0070.07713.99
5.3.40.0070.05713.86
5.3.30.0100.06013.95
5.3.20.0070.06713.62
5.3.10.0130.07013.71
5.3.00.0030.07713.68
5.2.170.0070.05711.18
5.2.160.0100.05711.16
5.2.150.0000.06711.12
5.2.140.0000.04311.23
5.2.130.0100.05711.08
5.2.120.0070.05711.07
5.2.110.0100.03711.08
5.2.100.0070.04011.19
5.2.90.0070.04311.23
5.2.80.0030.05011.16
5.2.70.0070.03711.01
5.2.60.0030.06311.13
5.2.50.0030.06711.03
5.2.40.0030.06011.03
5.2.30.0130.05711.10
5.2.20.0000.05310.77
5.2.10.0030.05710.77
5.2.00.0070.05710.72
5.1.60.0070.04310.03
5.1.50.0000.05710.03
5.1.40.0130.0279.88
5.1.30.0000.04710.43
5.1.20.0000.06310.43
5.1.10.0070.0409.96
5.1.00.0030.03710.18
5.0.50.0030.0208.64
5.0.40.0070.0338.44
5.0.30.0000.0608.32
5.0.20.0070.0238.23
5.0.10.0030.0438.22
5.0.00.0000.0538.20
4.4.90.0000.0207.26
4.4.80.0070.0337.26
4.4.70.0030.0377.26
4.4.60.0100.0277.26
4.4.50.0030.0237.26
4.4.40.0000.0277.26
4.4.30.0030.0307.26
4.4.20.0030.0237.26
4.4.10.0070.0237.26
4.4.00.0030.0477.26
4.3.110.0000.0307.26
4.3.100.0070.0337.26
4.3.90.0030.0337.26
4.3.80.0070.0507.26
4.3.70.0100.0277.26
4.3.60.0000.0307.26
4.3.50.0070.0307.26
4.3.40.0000.0477.26
4.3.30.0030.0277.26
4.3.20.0030.0377.26
4.3.10.0030.0277.26
4.3.00.0000.0207.26

preferences:
49.9 ms | 401 KiB | 5 Q