Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<!DOCTYPE html> <html> <head> <title>Cours PHP & MySQL</title> <me..

Decoded Output download

3 + 4 = 7<br>

Did this file decode correctly?

Original Code

<!DOCTYPE html>
<html>
    <head>
        <title>Cours PHP & MySQL</title>
        <meta charset="utf-8">
        <link rel="stylesheet" href="cours.css">
    </head>
    
    <body>
        <h1>Titre principal</h1>
        <?php
            function test($a, $b){
                echo $a. ' + ' .$b. ' = ' .($a + $b). '<br>';
            }
        
            function addition(float $a, float $b){
                echo $a. ' + ' .$b. ' = ' .($a + $b). '<br>';
            }
            
            test(3, 4);
            test(3, '4Pierre');//'4Pierre' est converti en 4 par PHP
            test(3, 'Pierre');//'Pierre' est converti en 0 par PHP
            addition(3, 4);
            addition(3, 4.5);
            addition(3.5, 4.2);
            addition(3, '4Pierre');//'4Pierre' est converti en 4 par PHP
            addition(3, 'Pierre');//Renvoie une erreur qui termine l'excution
            
            //Nous tudierons les erreurs plus tard dans le cours
            echo 'Ce message ne s\'affichera pas ';
        ?>
        <p>Un paragraphe</p>
    </body>
</html>

Function Calls

test 2

Variables

$a 3
$b 4Pierre

Stats

MD5 5040d0be76c2e7f10ce607c91fd6dbbd
Eval Count 0
Decode Time 90 ms