PHP code example of axy / evil

1. Go to this page and download the library: Download axy/evil 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/ */

    

axy / evil example snippets


/** @SuppressWarnings(PHPMD.Superglobals) */
$x = $_POST['x'];

Evil::execCode('2 + 2'); // 4

Evil::stop(); // exit
Evil::stop(5); // exit with code 5

breakpoint(mixed $message [, bool $line [, bool $file [, int $status]);

Evil::breakpoint('point'); // point
Evil::breakpoint('point', true); // 15: point
Evil::breakpoint('point', true, true); // /path/to/script.php:15: point

Evil::out($message);

$session = Superglobals::getSESSION();
$session['var'] = 'value'; // no effect

$session = &Supeglobals::getSESSION();
$session['var'] = 'value'; // success