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

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- phpunit ../../_files/UnexpectedOutputTest.php --SKIPIF-- <?php if(str_contains((s..

Decoded Output download

--TEST--
phpunit ../../_files/UnexpectedOutputTest.php
--SKIPIF--
<?php if(str_contains((string)ini_get('xdebug.mode'), 'develop')) {
print 'skip: xdebug.mode=develop is enabled';
}
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = '--no-progress';
$_SERVER['argv'][] = __DIR__ . '/../_files/UnexpectedOutputTest.php';

require_once __DIR__ . '/../../bootstrap.php';
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.

Runtime: %s

array(1) {
  ["foo"]=>
  string(3) "bar"
}
Time: %s, Memory: %s

OK (1 test, 1 assertion)
 ?>

Did this file decode correctly?

Original Code

--TEST--
phpunit ../../_files/UnexpectedOutputTest.php
--SKIPIF--
<?php if(str_contains((string)ini_get('xdebug.mode'), 'develop')) {
print 'skip: xdebug.mode=develop is enabled';
}
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = '--no-progress';
$_SERVER['argv'][] = __DIR__ . '/../_files/UnexpectedOutputTest.php';

require_once __DIR__ . '/../../bootstrap.php';
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.

Runtime: %s

array(1) {
  ["foo"]=>
  string(3) "bar"
}
Time: %s, Memory: %s

OK (1 test, 1 assertion)

Function Calls

None

Variables

None

Stats

MD5 ebd54745dac4293f1b0de93495439888
Eval Count 0
Decode Time 79 ms