This package is abandoned and no longer maintained. No replacement package was suggested.

Tool to find lines eliminated by OpCache's bytecode optimizer

0.1.0 2018-12-24 07:17 UTC

This package is auto-updated.

Last update: 2020-08-13 12:19:19 UTC


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


The recommended way to use this tool is a PHP Archive (PHAR):

$ wget

$ php foal.phar --version

Furthermore, it is recommended to use Phive for installing and updating the tool dependencies of your project.

Alternatively, you may use Composer to download and install this tool as well as its dependencies. This is not recommended, though.



function f()
    $result = 'result';

    return $result;
$ php foal.phar example.php
foal 0.1.0 by Sebastian Bergmann.

The OpCache optimizer eliminated the following sourcecode lines:

4          $result = 'result';
7      }