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 try { // Code that may throw an exception $result = 10 / 0; // Example ..

Decoded Output download

<?php 
 
try { 
    // Code that may throw an exception 
    $result = 10 / 0; // Example division by zero 
} catch (Exception $e) { 
    // Exception handling 
    echo "Caught exception: " . $e->getMessage() . "
"; 
    echo "Code: " . $e->getCode() . "
"; 
    echo "Previous exception: " . (($prev = $e->getPrevious()) ? $prev->getMessage() : "None") . "
"; 
    echo "Line: " . $e->getLine() . "
"; 
} 
 
?>

Did this file decode correctly?

Original Code

<?php

try {
    // Code that may throw an exception
    $result = 10 / 0; // Example division by zero
} catch (Exception $e) {
    // Exception handling
    echo "Caught exception: " . $e->getMessage() . "\n";
    echo "Code: " . $e->getCode() . "\n";
    echo "Previous exception: " . (($prev = $e->getPrevious()) ? $prev->getMessage() : "None") . "\n";
    echo "Line: " . $e->getLine() . "\n";
}

?>

Function Calls

None

Variables

None

Stats

MD5 a5a4fca2094b52bb9ced0affe0ed42f2
Eval Count 0
Decode Time 57 ms