Need help with foal?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

128 Stars 0 Forks Other 7 Commits 0 Opened issues


Tool to find lines eliminated by OpCache's bytecode optimizer

Services available


Need anything else?

Contributors list

No Data

Find Optimized-Away Lines (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.



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 }

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.