PHPackages                             sebastian/foal - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. sebastian/foal

ActiveLibrary[Testing &amp; Quality](/categories/testing)

sebastian/foal
==============

Tool to find lines eliminated by OpCache's bytecode optimizer

0.3.0(2y ago)139261[2 issues](https://github.com/sebastianbergmann/foal/issues)BSD-3-ClausePHPPHP ^8.3CI failing

Since Dec 24Pushed 2mo ago11 watchersCompare

[ Source](https://github.com/sebastianbergmann/foal)[ Packagist](https://packagist.org/packages/sebastian/foal)[ Docs](https://github.com/sebastianbergmann/foal)[ GitHub Sponsors](https://github.com/sebastianbergmann)[ RSS](/packages/sebastian-foal/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (4)Versions (5)Used By (0)

[![No Maintenance Intended](https://camo.githubusercontent.com/a527ad34c8e95a96952ba81a6aa421bc0fd9c18d55bd2b2cb28ff644f428f665/68747470733a2f2f756e6d61696e7461696e65642e746563682f62616467652e737667)](https://unmaintained.tech/)[![CI Status](https://github.com/sebastianbergmann/foal/workflows/CI/badge.svg)](https://github.com/sebastianbergmann/foal/actions)[![codecov](https://camo.githubusercontent.com/721adf45867293f520ba5656b060bfa176f540be4ed7b01990f7af12642e6624/68747470733a2f2f636f6465636f762e696f2f67682f73656261737469616e626572676d616e6e2f666f616c2f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/sebastianbergmann/foal)

Find Optimized-Away Lines (FOAL)
================================

[](#find-optimized-away-lines-foal)

`foal` finds lines of code that are eliminated by OpCache's bytecode optimizer.

Installation
------------

[](#installation)

The recommended way to use this tool is a [PHP Archive (PHAR)](https://php.net/phar):

```
$ wget https://phar.phpunit.de/foal.phar

$ php foal.phar --version
```

Furthermore, it is recommended to use [Phive](https://phar.io/) for installing and updating the tool dependencies of your project.

Usage
-----

[](#usage)

**`example.php`**

```
