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-- Test bracket notation without quotes --SKIPIF-- <?php if (!extension_loaded("json..

Decoded Output download

--TEST--
Test bracket notation without quotes
--SKIPIF--
<?php if (!extension_loaded("jsonpath")) print "skip"; ?>
--FILE--
<?php

$data = [
    "key" => "value",
];

$jsonPath = new \JsonPath\JsonPath();
$result = $jsonPath->find($data, "$[key]");

var_dump($result);
?>
--EXPECTF--
Fatal error: Uncaught JsonPath\JsonPathException: Unrecognized token `k` at position 2 in %s
Stack trace:
%s
%s
%s

Did this file decode correctly?

Original Code

--TEST--
Test bracket notation without quotes
--SKIPIF--
<?php if (!extension_loaded("jsonpath")) print "skip"; ?>
--FILE--
<?php

$data = [
    "key" => "value",
];

$jsonPath = new \JsonPath\JsonPath();
$result = $jsonPath->find($data, "$[key]");

var_dump($result);
?>
--EXPECTF--
Fatal error: Uncaught JsonPath\JsonPathException: Unrecognized token `k` at position 2 in %s
Stack trace:
%s
%s
%s

Function Calls

None

Variables

None

Stats

MD5 b69ee33e1e7ed07aa133a1f9be65881a
Eval Count 0
Decode Time 90 ms