This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
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


README

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

Installation

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

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

$ 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.

Usage

example.php

<?php
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      }