<?php
// PHP Version Compatibility and Security Best Practices

// Check PHP version to handle compatibility across versions (PHP 5.6, 7.4, 8.3)
if (version_compare(PHP_VERSION, '7.0.0', '>=')) {
    // PHP 7 and above: Modern array syntax is allowed
    $submission_status = [
        0 => 'Pending',
        1 => 'Accepted',
        2 => 'Declined'
    ];
} else {
    // PHP 5.6 Compatibility: Use older array syntax
    $submission_status = array(
        0 => 'Pending',
        1 => 'Accepted',
        2 => 'Declined'
    );
}

// Security best practices:
// Always sanitize output when displaying user-generated data to prevent XSS
// Usage example when outputting submission statuses in HTML:
function safeOutput($string) {
    return htmlspecialchars($string, ENT_QUOTES, 'UTF-8');
}

// Example of output in HTML
// foreach ($submission_status as $key => $status) {
//     echo "<p>" . safeOutput($status) . "</p>";
// }

?>