Nebula icon indicating copy to clipboard operation
Nebula copied to clipboard

🔮 PHP 8.3 Upgrade Features/Notes

Open chrisblakley opened this issue 10 months ago • 1 comments

PHP Version Timeline: https://www.php.net/supported-versions.php PHP Release Notes: https://php.watch/versions Version Stats: https://stitcher.io/blog/php-version-stats-january-2023

PHP 8.3 Info & References

https://php.watch/versions/8.3 https://stitcher.io/blog/new-in-php-83

  • Release Date: November 2023
  • Active Support Until November 2025
  • Security Support Until November 2026

Initial Tasks

  • [x] Update /inc/data/php_timeline.json Nebula file

Projected Nebula Minimum Version Timeline

Active table will be moved here as it gets closer #1992

Notable Features related to Nebula in PHP 8.3

  • Negative indices in arrays
  • New json_validate() function
  • Improved unserialize() error handling

chrisblakley avatar Apr 02 '24 22:04 chrisblakley

The new JSON Validate function:

if ( json_validate('{"foo":"bar"}') ){
    echo 'JSON valid'; 
}

if ( json_validate('[1,2,3}') ){
    echo 'JSON invalid'; 
}

chrisblakley avatar Apr 02 '24 22:04 chrisblakley