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

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- is_scalar() function test --FILE-- <?php class foo {} var_dump (is_scalar (TRUE))..

Decoded Output download

--TEST--
is_scalar() function test
--FILE--
<?php
class foo {}
var_dump (is_scalar (TRUE));
var_dump (is_scalar (1));
var_dump (is_scalar (1.0));
var_dump (is_scalar ("Hi!"));
var_dump (is_scalar (NULL));
var_dump (is_scalar (array ()));
var_dump (is_scalar (new foo()));
var_dump (is_scalar (opendir('.')));
?>
--EXPECT--
bool(true)
bool(true)
bool(true)
bool(true)
bool(false)
bool(false)
bool(false)
bool(false)

Did this file decode correctly?

Original Code

--TEST--
is_scalar() function test
--FILE--
<?php
class foo {}
var_dump (is_scalar (TRUE));
var_dump (is_scalar (1));
var_dump (is_scalar (1.0));
var_dump (is_scalar ("Hi!"));
var_dump (is_scalar (NULL));
var_dump (is_scalar (array ()));
var_dump (is_scalar (new foo()));
var_dump (is_scalar (opendir('.')));
?>
--EXPECT--
bool(true)
bool(true)
bool(true)
bool(true)
bool(false)
bool(false)
bool(false)
bool(false)

Function Calls

None

Variables

None

Stats

MD5 0cfc72e433fdf31b37b51efd9ca15c17
Eval Count 0
Decode Time 87 ms