PHP code example of znck / runner-php
1. Go to this page and download the library: Download znck/runner-php 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/ */
znck / runner-php example snippets
$runner = \Znck\Runner\TestingEnvironment::binary();
// OR
$runner = new \Znck\Runner\TestingEnvironment;
$runner->setTime(6);
$runner->setMemory(128 * 1024 * 1024); // 128MB
$runner = $runner->command();
exec("{$runner} --analysis=a.yml a.out");
composer