phpunit latest version code example
Example 1: how to install phpunit
suhosin.executor.include.whitelist = phar
$ wget https:
$ chmod +x phpunit-6.5.phar
$ sudo mv phpunit-6.5.phar /usr/local/bin/phpunit
$ phpunit --version
$ wget https:
$ php phpunit-6.5.phar --version
Example 2: how to install phpunit
SELECT @@SERVERNAME AS 'Server Name'
Example 3: latest php version
<?php
$json = file_get_contents('https://www.php.net/releases/?json');
$releases = [];
if ($json) $releases = json_decode($json, true);
$versions = array_keys($releases);
if (array_key_exists(max($versions), $releases)) {
echo $releases[max($versions)]['version'];
}