Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Livewire\Mechanisms\HandleComponents\Synthesizers; use stdClass; class ..
Decoded Output download
<?php
namespace Livewire\Mechanisms\HandleComponents\Synthesizers;
use stdClass;
class StdClassSynth extends Synth {
public static $key = 'std';
static function match($target) {
return $target instanceof stdClass;
}
function dehydrate($target, $dehydrateChild) {
$data = (array) $target;
foreach ($target as $key => $child) {
$data[$key] = $dehydrateChild($key, $child);
}
return [$data, []];
}
function hydrate($value, $meta, $hydrateChild) {
$obj = new stdClass;
foreach ($value as $key => $child) {
$obj->$key = $hydrateChild($key, $child);
}
return $obj;
}
function set(&$target, $key, $value) {
$target->$key = $value;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Livewire\Mechanisms\HandleComponents\Synthesizers;
use stdClass;
class StdClassSynth extends Synth {
public static $key = 'std';
static function match($target) {
return $target instanceof stdClass;
}
function dehydrate($target, $dehydrateChild) {
$data = (array) $target;
foreach ($target as $key => $child) {
$data[$key] = $dehydrateChild($key, $child);
}
return [$data, []];
}
function hydrate($value, $meta, $hydrateChild) {
$obj = new stdClass;
foreach ($value as $key => $child) {
$obj->$key = $hydrateChild($key, $child);
}
return $obj;
}
function set(&$target, $key, $value) {
$target->$key = $value;
}
}
Function Calls
| None |
Stats
| MD5 | d5a224ecfe330c4563b70f9f2b497160 |
| Eval Count | 0 |
| Decode Time | 91 ms |