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

The backtick (`) operator is deprecated, use shell_exec() instead

Description

The back tick operator \ is the equivalent to the functionshell_exec()`. It is being deprecated since PHP 8.5.

Example

<?php

echo `ls`;

?>

Alternatives

  • Use shell_exec() instead.

Changed Behavior

This error may appear following an evolution in behavior, in previous versions. See backtick