PHP code example of sebastian / foal
1. Go to this page and download the library: Download sebastian/foal library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sebastian / foal example snippets
declare(strict_types=1);
function f()
{
$result = 'result';
return $result;
}
$ php foal.phar example.php
foal 0.4.0 by Sebastian Bergmann.
1 declare(strict_types=1);
2 function f()
3 {
- 4 $result = 'result';
5
6 return $result;
- 7 }
$ php foal.phar --paths example example/source.php
foal 0.4.0 by Sebastian Bergmann.
Wrote execution paths for example/source.php to example/unoptimized.dot
Wrote optimized execution paths for example/source.php to example/optimized.dot