Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

(unset) Was Removed

The (unset) operator has been removed. Use the unset() function for that feature.

PHP code

<?php

$a = 1;
(unset) $a;

var_dump($a);

?>

Before

PHP Deprecated:  The (unset) cast is deprecated

Deprecated: The (unset) cast is deprecated
int(1)

After

PHP Fatal error:  The (unset) cast is no longer supported

Fatal error: The (unset) cast is no longer supported

PHP version change

This behavior was deprecated in 7.4.

This behavior changed in 8.0.

Error Messages

Extension

Analyzer

© 2023-2026, Damien Seguy - Exakat