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 $collection = \Vtiful\Kernel\Collection::init([ ['account_id' => 'account-x10',..

Decoded Output download

<?php

$collection = \Vtiful\Kernel\Collection::init([
    ['account_id' => 'account-x10', 'product' => 'Chair'],
    ['account_id' => 'account-x10', 'product' => 'Bookcase'],
    ['account_id' => 'account-x11', 'product' => 'Desk'],
]);

$grouped = $collection->groupBy(function ($item, $key) {
    return substr($item['account_id'], -3);
});

var_dump($grouped->toArray());

$grouped = $collection->groupBy('account_id');

var_dump($grouped->toArray()); ?>

Did this file decode correctly?

Original Code

<?php

$collection = \Vtiful\Kernel\Collection::init([
    ['account_id' => 'account-x10', 'product' => 'Chair'],
    ['account_id' => 'account-x10', 'product' => 'Bookcase'],
    ['account_id' => 'account-x11', 'product' => 'Desk'],
]);

$grouped = $collection->groupBy(function ($item, $key) {
    return substr($item['account_id'], -3);
});

var_dump($grouped->toArray());

$grouped = $collection->groupBy('account_id');

var_dump($grouped->toArray());

Function Calls

None

Variables

None

Stats

MD5 93b9c8e36c946573bcfea8c9a8edc2c9
Eval Count 0
Decode Time 61 ms