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 // Noting here $db = new LibSQL(":memory:"); if (!$db) { throw new Exception(..

Decoded Output download

<?php

// Noting here

$db = new LibSQL(":memory:");

if (!$db) {
    throw new Exception("Database Not Connected!");
}

$createUsers = <<<STMT
CREATE TABLE IF NOT EXISTS users (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    name TEXT,
    age INTEGER
);
INSERT INTO users (name, age) VALUES ('Bilal Ali Maftullah', 21);
INSERT INTO users (name, age) VALUES ('Lisa Nur Amelia', 22);
STMT;

$db->executeBatch($createUsers);

$getAllUsers = $db->query("SELECT * FROM users")->fetchArray();
var_dump($getAllUsers);

$db->close();
 ?>

Did this file decode correctly?

Original Code

<?php

// Noting here

$db = new LibSQL(":memory:");

if (!$db) {
    throw new Exception("Database Not Connected!");
}

$createUsers = <<<STMT
CREATE TABLE IF NOT EXISTS users (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    name TEXT,
    age INTEGER
);
INSERT INTO users (name, age) VALUES ('Bilal Ali Maftullah', 21);
INSERT INTO users (name, age) VALUES ('Lisa Nur Amelia', 22);
STMT;

$db->executeBatch($createUsers);

$getAllUsers = $db->query("SELECT * FROM users")->fetchArray();
var_dump($getAllUsers);

$db->close();

Function Calls

None

Variables

None

Stats

MD5 4fd306042dd21e4dc41a83eb716bfb3f
Eval Count 0
Decode Time 79 ms