3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Form_Prepare { public static function Standard($table, $location = 'create') { $schema = GetDBSchema(); $xtable = $schema->el('//table[name="' . $table . '"]'); foreach( $xtable->xpath('./columns/column') as $xcolumn ) { $xlocation = $xcolumn->el('./user/' . $location); if( empty($xlocation) || !$xlocation->val() ) { if( isset($_REQUEST[$xcolumn->name->val()]) ) { unset($_REQUEST[$xcolumn->name->val()]); } } } } public static function Custom($table, $allow_field = 'on_submit') { $DB = GetDB(); $result = $DB->Query('SELECT * FROM #', array($table)); while( $field = $DB->NextRow($result) ) { // User can submit this field if( $field[$allow_field] ) { if( $field['type'] == Form_Field::CHECKBOX && !isset($_REQUEST[$field['name']]) ) { $_REQUEST[$field['name']] = 0; } } // User cannot submit this field else { if( isset($_REQUEST[$field['name']]) ) { unset($_REQUEST[$field['name']]); } } } $DB->Free($result); } } ?>

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.70.0080.00816.58
8.3.60.0170.00318.43
8.3.50.0090.00921.08
8.3.40.0080.00818.53
8.3.30.0180.00320.17
8.3.20.0080.00020.18
8.3.10.0060.00320.90
8.3.00.0070.00023.66
8.2.180.0060.01516.38
8.2.170.0120.00622.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00820.88
8.2.110.0000.00919.21
8.2.100.0080.00417.78
8.2.90.0000.00719.13
8.2.80.0000.00817.97
8.2.70.0030.00617.38
8.2.60.0050.00317.92
8.2.50.0000.00818.07
8.2.40.0040.00418.09
8.2.30.0080.00019.37
8.2.20.0030.00517.47
8.2.10.0000.00717.45
8.2.00.0000.00717.64
8.1.280.0090.00925.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0120.00022.19
8.1.230.0090.00320.90
8.1.220.0000.00818.77
8.1.210.0000.00819.01
8.1.200.0030.00617.10
8.1.190.0000.00717.38
8.1.180.0000.00818.10
8.1.170.0000.00818.59
8.1.160.0040.00418.75
8.1.150.0040.00418.54
8.1.140.0070.00017.32
8.1.130.0000.00717.87
8.1.120.0000.00717.36
8.1.110.0070.00017.34
8.1.100.0040.00417.41
8.1.90.0000.00717.38
8.1.80.0080.00017.24
8.1.70.0000.00717.34
8.1.60.0060.00317.43
8.1.50.0040.00417.33
8.1.40.0040.00417.30
8.1.30.0040.00417.48
8.1.20.0090.00017.46
8.1.10.0080.00017.34
8.1.00.0000.00817.36
8.0.300.0050.00319.74
8.0.290.0070.00016.91
8.0.280.0040.00418.37
8.0.270.0000.00717.06
8.0.260.0030.00316.68
8.0.250.0040.00416.75
8.0.240.0000.00916.75
8.0.230.0000.00616.92
8.0.220.0040.00416.70
8.0.210.0000.00716.69
8.0.200.0000.00616.84
8.0.190.0040.00416.87
8.0.180.0040.00416.83
8.0.170.0030.00316.85
8.0.160.0070.00016.87
8.0.150.0000.00716.66
8.0.140.0050.00316.67
8.0.130.0060.00313.21
8.0.120.0040.00416.73
8.0.110.0000.00816.75
8.0.100.0040.00416.66
8.0.90.0000.00716.80
8.0.80.0100.01016.76
8.0.70.0040.00416.73
8.0.60.0050.00216.68
8.0.50.0000.00716.65
8.0.30.0110.00716.82
8.0.20.0110.00817.40
8.0.10.0000.00717.02
8.0.00.0100.00716.64
7.4.330.0020.00215.02
7.4.320.0060.00316.35
7.4.300.0030.00316.39
7.4.290.0000.00716.43
7.4.280.0040.00316.38
7.4.270.0040.00416.35
7.4.260.0080.00013.22
7.4.250.0000.00816.50
7.4.240.0070.00016.33
7.4.230.0030.00316.31
7.4.220.0060.01216.43
7.4.210.0050.00916.36
7.4.200.0040.00416.54
7.4.190.0070.00016.63
7.4.160.0110.00616.28
7.4.150.0060.01217.40
7.4.140.0050.01217.86
7.4.130.0120.00816.35
7.4.120.0130.00716.38
7.4.110.0060.01316.25
7.4.100.0150.00616.41
7.4.90.0130.00316.40
7.4.80.0100.01319.39
7.4.70.0100.01016.48
7.4.60.0060.00916.25
7.4.50.0000.00816.11
7.4.40.0050.00822.77
7.4.30.0120.00916.48
7.4.00.0100.00715.03
7.3.330.0030.00313.23
7.3.320.0030.00313.02
7.3.310.0040.00416.16
7.3.300.0030.00616.16
7.3.290.0070.01116.17
7.3.280.0050.01016.19
7.3.270.0100.00717.40
7.3.260.0110.00818.24
7.3.250.0090.00916.32
7.3.240.0090.00916.28
7.3.230.0070.01016.51
7.3.210.0110.00616.25
7.3.200.0130.00719.39
7.3.190.0120.00916.51
7.3.180.0070.01116.36
7.3.170.0100.00716.40
7.3.160.0090.01316.36
7.3.120.0030.01014.70
7.3.10.0030.01015.85
7.3.00.0040.00916.09
7.2.330.0120.00616.30
7.2.320.0110.00716.36
7.2.310.0120.01216.27
7.2.300.0080.00816.21
7.2.290.0100.00616.47
7.2.130.0060.00916.39
7.2.120.0100.00016.48
7.2.110.0170.00416.45
7.2.100.0080.00416.47
7.2.90.0070.00616.52
7.2.80.0000.01016.51
7.2.70.0040.01116.45
7.2.60.0140.00516.51
7.2.50.0150.00716.50
7.2.40.0110.00616.42
7.2.30.0100.01016.56
7.2.20.0140.00716.34
7.2.10.0150.00016.51
7.2.00.0050.00817.71
7.1.250.0130.00615.29
7.1.100.0050.00518.00
7.1.70.0000.01016.68
7.1.60.0060.01919.17
7.1.50.0060.01216.71
7.1.00.0000.07722.45
7.0.200.0030.00316.46
7.0.140.0100.07022.18
7.0.60.0030.06720.03
7.0.50.0030.04317.93
7.0.40.0070.04020.19
7.0.30.0270.03320.16
7.0.20.0300.08020.16
7.0.10.0070.09020.25
7.0.00.0100.04320.21
5.6.280.0030.07320.90
5.6.210.0170.07320.66
5.6.200.0030.07018.16
5.6.190.0100.08020.79
5.6.180.0130.05020.67
5.6.170.0200.05320.51
5.6.160.0100.08320.39
5.6.150.0100.07718.18
5.6.140.0030.08318.15
5.6.130.0070.05018.27
5.6.120.0070.08721.00
5.6.110.0070.06721.10
5.6.100.0070.03721.05
5.6.90.0070.04020.89
5.6.80.0130.07320.54
5.5.350.4300.02720.44
5.5.340.0130.07317.99
5.5.330.0100.08320.27
5.5.320.0130.05720.25
5.5.310.0230.06720.23
5.5.300.0170.04317.97
5.5.290.0100.05018.08
5.5.280.0070.06720.89
5.5.270.0130.05320.78
5.5.260.0030.04320.88
5.5.250.0070.06320.70
5.5.240.0430.06320.38
5.4.450.0270.03719.27
5.4.440.0330.05319.41
5.4.430.0230.07319.18
5.4.420.0200.04319.40
5.4.410.0270.04719.44
5.4.400.0270.06018.99
5.4.390.0270.04318.84
5.4.380.0170.05718.84
5.4.370.0270.04018.84
5.4.360.0330.07319.14
5.4.350.0300.04019.09
5.4.340.0270.05718.97
5.4.320.0330.06319.21
5.4.310.0300.07019.20
5.4.300.0300.07018.86
5.4.290.0230.04019.11
5.4.280.0370.06319.23
5.4.270.0230.06319.12
5.4.260.0200.05318.83
5.4.250.0270.07018.97
5.4.240.0200.04019.19
5.4.230.0270.04718.94
5.4.220.0330.02719.16
5.4.210.0300.06319.20
5.4.200.0300.04319.20
5.4.190.0200.06718.98
5.4.180.0300.04719.04
5.4.170.0330.06019.07
5.4.160.0300.06718.97
5.4.150.0330.06318.95
5.4.140.0300.06316.30
5.4.130.0330.04316.35
5.4.120.0230.05316.35
5.4.110.0270.04716.37
5.4.100.0370.05316.38
5.4.90.0230.04016.21
5.4.80.0300.06316.18
5.4.70.0230.04316.55
5.4.60.0330.06016.56
5.4.50.0270.03316.27
5.4.40.0230.06016.56
5.4.30.0230.07716.37
5.4.20.0200.04716.48
5.4.10.0270.05316.52
5.4.00.0230.03715.73
5.3.290.0230.05714.75
5.3.280.0170.04314.69
5.3.270.0270.07014.59
5.3.260.0170.06314.53
5.3.250.0270.03714.63
5.3.240.0230.03714.62
5.3.230.0230.07014.53
5.3.220.0330.05314.48
5.3.210.0200.05314.55
5.3.200.0330.06314.66
5.3.190.0270.05714.47
5.3.180.0200.04314.59
5.3.170.0270.07014.63
5.3.160.0200.03714.61
5.3.150.0230.03714.64
5.3.140.0200.03714.63
5.3.130.0270.03014.64
5.3.120.0230.03314.64
5.3.110.0230.03314.61
5.3.100.0230.04013.97
5.3.90.0230.07013.91
5.3.80.0300.04714.03
5.3.70.0230.04014.09
5.3.60.0200.04314.16
5.3.50.0170.07013.86
5.3.40.0170.04714.02
5.3.30.0270.03713.92
5.3.20.0170.05013.79
5.3.10.0270.02713.67
5.3.00.0230.03013.65
5.2.170.0170.03012.14
5.2.160.0170.02712.14
5.2.150.0200.03012.14
5.2.140.0270.05012.14
5.2.130.0200.02312.14
5.2.120.0170.04312.14
5.2.110.0100.03312.14
5.2.100.0230.03312.14
5.2.90.0170.03312.14
5.2.80.0170.02712.14
5.2.70.0200.06012.14
5.2.60.0200.05312.14
5.2.50.0170.04012.14
5.2.40.0170.04012.14
5.2.30.0270.04712.14
5.2.20.0170.02712.14
5.2.10.0170.02712.14
5.2.00.0170.05712.14
5.1.60.0170.02012.14
5.1.50.0230.02312.14
5.1.40.0070.03012.14
5.1.30.0130.03012.14
5.1.20.0170.02312.14
5.1.10.0230.02012.14
5.1.00.0130.03012.14
5.0.50.0170.02012.14
5.0.40.0000.02712.14
5.0.30.0100.03712.14
5.0.20.0100.02312.14
5.0.10.0170.03012.14
5.0.00.0070.03312.14
4.4.90.0030.02012.14
4.4.80.0100.01312.14
4.4.70.0030.02012.14
4.4.60.0130.02012.14
4.4.50.0100.02012.14
4.4.40.0170.02312.14
4.4.30.0170.02312.14
4.4.20.0130.01312.14
4.4.10.0100.01312.14
4.4.00.0070.02712.14
4.3.110.0100.02712.14
4.3.100.0070.02012.14
4.3.90.0070.02012.14
4.3.80.0130.02012.14
4.3.70.0170.02712.14
4.3.60.0170.01312.14
4.3.50.0100.03312.14
4.3.40.0030.04312.14
4.3.30.0000.02012.14
4.3.20.0070.01312.14
4.3.10.0030.03012.14
4.3.00.0100.02712.14

preferences:
64.79 ms | 401 KiB | 5 Q