Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

#!/usr/bin/env php <?php if ($argc !== 3) { echo 'Usage: php ./store.php key value'; ..

Decoded Output download

Usage: php ./store.php key value

Did this file decode correctly?

Original Code

#!/usr/bin/env php
<?php

if ($argc !== 3) {
    echo 'Usage: php ./store.php key value';
    exit(1);
}

$file = __DIR__.'/versions.json';
$data = json_decode(file_get_contents($file), true);
$data[$argv[1]] = $argv[2];

file_put_contents($file, json_encode($data, JSON_PRETTY_PRINT));

exit(0);

Function Calls

None

Variables

None

Stats

MD5 b519a2c2a0c890712dd41b210f55039a
Eval Count 0
Decode Time 86 ms