1<?php 2$_SERVER['BASE_PAGE'] = 'eol.php'; 3 4include_once __DIR__ . '/include/prepend.inc'; 5include_once __DIR__ . '/include/branches.inc'; 6 7// Notes for specific branches can be added here, and will appear in the table. 8$BRANCH_NOTES = [ 9 '8.0' => '<a href="/migration81">A guide is available for migrating from PHP 8.0 to 8.1.</a>', 10 '7.4' => '<a href="/migration80">A guide is available for migrating from PHP 7.4 to 8.0.</a>', 11 '7.3' => '<a href="/migration74">A guide is available for migrating from PHP 7.3 to 7.4.</a>', 12 '7.2' => '<a href="/migration73">A guide is available for migrating from PHP 7.2 to 7.3.</a>', 13 '7.1' => '<a href="/migration72">A guide is available for migrating from PHP 7.1 to 7.2.</a>', 14 '7.0' => '<a href="/migration71">A guide is available for migrating from PHP 7.0 to 7.1.</a>', 15 '5.6' => '<a href="/migration70">A guide is available for migrating from PHP 5.6 to 7.0.</a>', 16 '5.5' => '<a href="/migration56">A guide is available for migrating from PHP 5.5 to 5.6.</a>', 17 '5.4' => '<a href="https://php-legacy-docs.zend.com/manual/php5/en/migration55">A guide is available for migrating from PHP 5.4 to 5.5.</a>', 18 '5.3' => '<a href="https://php-legacy-docs.zend.com/manual/php5/en/migration54">A guide is available for migrating from PHP 5.3 to 5.4.</a>', 19 '5.2' => '<a href="https://php-legacy-docs.zend.com/manual/php5/en/migration53">A guide is available for migrating from PHP 5.2 to 5.3.</a>', 20 '5.1' => '<a href="https://php-legacy-docs.zend.com/manual/php5/en/migration52">A guide is available for migrating from PHP 5.1 to 5.2.</a>', 21 '5.0' => '<a href="https://php-legacy-docs.zend.com/manual/php5/en/migration51">A guide is available for migrating from PHP 5.0 to 5.1.</a>', 22 '4.4' => '<a href="https://php-legacy-docs.zend.com/manual/php5/en/migration5">A guide is available for migrating from PHP 4 to 5.0.</a>', 23]; 24 25site_header('Unsupported Branches'); 26?> 27 28<h1>Unsupported Branches</h1> 29 30<p> 31 This page lists the end of life date for each unsupported branch of PHP. If 32 you are using these releases, you are strongly urged to upgrade to 33 <a href="/supported-versions">a current version</a>, as using older versions 34 may expose you to security vulnerabilities and bugs that have been fixed in 35 more recent versions of PHP. 36</p> 37 38<table class="standard"> 39 <thead> 40 <tr> 41 <th>Branch</th> 42 <th>Date</th> 43 <th>Last Release</th> 44 <th>Notes</th> 45 </tr> 46 </thead> 47 <tbody> 48 <?php foreach (get_eol_branches() as $major => $branches): ?> 49 <?php foreach ($branches as $branch => $detail): ?> 50 <?php $eolDate = get_branch_security_eol_date($branch) ?> 51 <?php $eolPeriod = format_interval($eolDate, new DateTime('now')) ?> 52 <tr> 53 <td><?php echo htmlspecialchars($branch); ?></td> 54 <td> 55 <?php echo $eolDate->format('j M Y') ?> 56 <br/> 57 <em>(<?php echo $eolPeriod ?>)</em> 58 </td> 59 <td> 60 <a href="<?php echo htmlspecialchars($detail['link']); ?>"> 61 <?php echo htmlspecialchars($detail['version']); ?> 62 </a> 63 </td> 64 <td> 65 <?php echo $BRANCH_NOTES[$branch] ?? ''; ?> 66 </td> 67 </tr> 68 <?php endforeach ?> 69 <?php endforeach ?> 70 </tbody> 71</table> 72 73<?php site_footer(); ?> 74