title: How to install PHP 7.2 on macOS Big Sur using Homebrew?
body: <p>I want to install PHP 7.2 on MacBook Pro M1, macOS Big Sur (11.5.2).</p>
  <p>I already read an article (<a href="https://betterprogramming.pub/how-to-install-a-php-7-2-on-macos-10-15-catalina-using-homebrew-and-pecl-ad5b6c9ffb17" rel="noreferrer">How To Install a PHP 7.2 on macOS 10.15 Catalina Using Homebrew and PECL</a>), but it doesn't work for me.</p>
  <p>I used Homebrew to install PHP 7.2 using this command:</p>
  <pre class="lang-sh prettyprint-override"><code>brew install php@7.2
  </code></pre>
  <p>But I've got this error:</p>
  <pre><code>php@7.2 has been disabled because it is deprecated upstream!
  </code></pre>