SourceGuardian Decoder
Online

Decode SourceGuardian-encoded PHP files online. Free preview, no install required.

10,000+ files decoded · 99.9% success rate · Free preview available

terminal
functions.php
Encrypted
1<?php2if(!function_exists('sg_load')){3  $__v=phpversion();$__x=explode('.',$__v);4  die('This file was protected by5SourceGuardian. The SourceGuardian Loader6(ixed.'.$__x[0].'.'.$__x[1].') is not7installed. Please visit sourceguardian.com8to download the required loader.');9}10return sg_load('9E1A2B4C0D8F73AC41B2');11?>12Ur4+bXhNQlVMOHl2c2RLbEd3T3F6QW5j13K2R5bkxtVnBSaGpFYUZiSWNVdE94QXNn14ZUhrYlBmdEp3UWl6WG9WcU1kTnJTeUxn15cUF6c2VIa2JQZnRKd1FpelhvVnFNZE5y
functions_decoded.php
Decoded
1<?php23function invoice_settings($v1 = null) {4    if ($v1 === null) {5        return get_option("acme_invoice");6    }7    return get_option("acme_invoice")[$v1];8}910function invoice_log($v1 = null, $v2 = "info") {11    $v3 = new Acme_Invoice_Log();12    $v3->write($v2, $v1);13    return $v3;14}1516function invoice_load_textdomain() {17    load_plugin_textdomain("acme-invoices", __DIR__);18    return;19}
Ready

Free Preview

Upload any SourceGuardian-encoded PHP file and preview the decoded output instantly. No registration required.

Only upload files you own, are authorized to analyze, or are lawfully permitted to recover, migrate, audit, or interoperate with. Do not upload third-party proprietary software without permission. See Terms.

Decode SourceGuardian-encoded PHP files online

SourceGuardian is the older sibling of IonCube — a commercial PHP encoder that compiles source into an encrypted bytecode format. Running a SourceGuardian file requires the SourceGuardian Loader extension on the server, which makes these files just as opaque as IonCube files if you need the underlying source.

DecodePHP decodes SourceGuardian files alongside IonCube, using the same upload-preview-buy workflow. The output is clean, readable PHP source that runs without the SourceGuardian Loader.

SourceGuardian vs. IonCube

  • Adoption. IonCube is more widely used, but SourceGuardian has a long tail of legacy and niche commercial scripts — particularly European billing systems and some WHMCS modules.
  • Obfuscation scheme. Different from IonCube. A decoder built for one cannot read the other's output.
  • Loader. SourceGuardian requires its own loader extension, not IonCube's.
  • License locking. Both support domain/IP/MAC locking. DecodePHP strips these during decoding.

When you need a SourceGuardian decoder

  • You bought a paid PHP script and need to modify it.
  • You inherited a codebase and lost the original source.
  • You're migrating a legacy app from PHP 5.x or 7.x to PHP 8.x.
  • You're auditing a third-party plugin before deploying it.

SourceGuardian (all versions)

Every SourceGuardian build we've seen in commercial PHP scripts — we update when new encoder versions ship.

PHP 7.1–8.4

Every PHP version covered: 7.1, 7.2, 7.3, 7.4, 8.1, 8.2, 8.3, and 8.4.

Clean output

Properly formatted, readable code with preserved structure and formatting.

Fast decoding

Most files decoded in under 30 seconds. Optimized for files of any size.

100% online

Nothing to install. Works in any browser, on any device, anywhere.

Instant download

Download decoded files immediately after processing. No waiting.

How it works

Three steps to decoded source

  1. 01

    Upload your file

    Drag and drop your SourceGuardian-encoded PHP file or click to browse.

  2. 02

    Preview the output

    See the first 20 lines of decoded code instantly to verify quality.

  3. 03

    Download the full file

    Purchase credits and download the complete decoded source code.

Credit packs

Buy once and decode anytime. Web and API access are included.

Starter

$19

3 credits · $6.33/file

Entry pack for a few one-off files.

  • 3 file credits
  • Web + API access
  • Credits do not expire
  • SourceGuardian (all versions) & PHP 5.x–8.x
  • Successful decodes only
Most Popular

Pro

$59

30 credits · $1.97/file

Best default pack for developers.

  • 30 file credits
  • Web + API access
  • Credits do not expire
  • SourceGuardian (all versions) & PHP 5.x–8.x
  • Successful decodes only

Enterprise

$199

150 credits · $1.33/file

High-volume pack for teams and agencies.

  • 150 file credits
  • Web + API access
  • Credits do not expire
  • SourceGuardian (all versions) & PHP 5.x–8.x
  • Successful decodes only

Custom

Contact us

150+ credits · custom volume

Larger volume, special handling, or custom terms.

  • 150+ file credits
  • Web + API access
  • Custom volume pricing
  • Priority handling options
  • Email support

Secure crypto payments · Bitcoin, Ethereum, Litecoin, Monero, USDT

Frequently asked questions

What is SourceGuardian?
SourceGuardian is a commercial PHP encoder similar to IonCube. It compiles PHP source to encrypted bytecode that requires the SourceGuardian Loader extension to execute. DecodePHP decodes SourceGuardian files back to readable PHP source.
Can you decode any SourceGuardian-encoded file?
We handle the major SourceGuardian releases used in commercial PHP scripts. Some files with heavy custom anti-tamper may require manual assistance — contact us on Signal at sologhoul.83 if preview fails.
What's the difference between IonCube and SourceGuardian?
Both are PHP bytecode protectors, but they use different obfuscation schemes, licensing models, and loader extensions. Files encoded with one protector can't be read by the other. DecodePHP handles both.
Is there a free preview for SourceGuardian files?
Yes. Upload any SourceGuardian-encoded file and see the first 20 lines of decoded PHP source before you pay.
What PHP versions does your SourceGuardian decoder support?
We support the PHP versions SourceGuardian targets: PHP 5.x through 8.x. For PHP 8.x files, ensure your SourceGuardian encoder is recent enough to emit 8.x bytecode.
How much does SourceGuardian decoding cost?
Same as IonCube decoding: buy a one-time credit pack and use credits for successful decodes. The decoder detects the protector automatically.
Can I decode files that were SourceGuardian + IonCube double-encoded?
Rare but handled. Upload the file and we'll peel the layers in order (outer first, then inner). Contact us if the preview is incomplete.
Is my SourceGuardian file safe when I upload it?
Yes. All files are processed in ephemeral containers and deleted after decoding. We never store or share source.

Ready to decode?

Upload your first file and see the results in seconds.

Contact us on Signal