# [RFC] Deprecate Backtick Operator (V2)

- Thread: https://externals.io/message/107377
- Original archive: https://news-web.php.net/php.internals/107377
- Started by Michael Kliewe on 2019-10-05T16:48:40+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #107377 — Michael Kliewe — 2019-10-05T16:48:40+00:00

URL: https://externals.io/message/107377#107377

Hi,

Am 04.10.2019 um 17:45 schrieb Mark Randall:
> Hi Internals,
>
> I put forward the following RFC "Deprecate Backtick Operator (V2)" for 
> discussion.
>
> https://wiki.php.net/rfc/deprecate-backtick-operator-v2
>
> I believe it is at least worth a discussion as to the pros and cons of 
> deprecating this functionality, especially in light of the existence 
> of better described and more well-known functions exhibiting identical 
> behaviour.

Two more advantages of using `shell_exec()`:

- you can override/mock `shell_exec()` in a namespace. You cannot do that 
with the "backtick operator".
- in IDEs like PHPStorm, you can ctrl-click on the function name 
"shell_exec" to check what it does: see what the return value is, see a 
description, click the link to the manual. You can easily search for 
"other usages" (right-click "Find Usages"). You cannot do that with the 
"backtick operator".

Michael
