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 declare(strict_types=1); use App\Interfaces\MigrationInterface; use App\Services\D..

Decoded Output download

<?php

declare(strict_types=1);

use App\Interfaces\MigrationInterface;
use App\Services\DB;

return new class() implements MigrationInterface {
    public function up(): int
    {
        DB::getPdo()->exec("
            ALTER TABLE node ADD COLUMN IF NOT EXISTS `dynamic_rate_type` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT '';
        ");

        return 2023120700;
    }

    public function down(): int
    {
        DB::getPdo()->exec('
            ALTER TABLE node DROP COLUMN IF EXISTS `dynamic_rate_type`;
        ');

        return 2023111801;
    }
};
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

use App\Interfaces\MigrationInterface;
use App\Services\DB;

return new class() implements MigrationInterface {
    public function up(): int
    {
        DB::getPdo()->exec("
            ALTER TABLE node ADD COLUMN IF NOT EXISTS `dynamic_rate_type` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT '';
        ");

        return 2023120700;
    }

    public function down(): int
    {
        DB::getPdo()->exec('
            ALTER TABLE node DROP COLUMN IF EXISTS `dynamic_rate_type`;
        ');

        return 2023111801;
    }
};

Function Calls

None

Variables

None

Stats

MD5 7532cecd2e58e65c41984b53bf7e1c5f
Eval Count 0
Decode Time 110 ms