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-- Using SplFixedArray::offsetGet() with various types --CREDITS-- Gabriel Caruso (c..
Decoded Output download
--TEST--
Using SplFixedArray::offsetGet() with various types
--CREDITS--
Gabriel Caruso ([email protected])
--FILE--
<?php
$arr = new SplFixedArray(2);
$arr[0] = 'foo';
$arr[1] = 'bar';
var_dump($arr->offsetGet(0.2));
var_dump($arr->offsetGet(false));
var_dump($arr->offsetGet(true));
?>
--EXPECT--
string(3) "foo"
string(3) "foo"
string(3) "bar"
Did this file decode correctly?
Original Code
--TEST--
Using SplFixedArray::offsetGet() with various types
--CREDITS--
Gabriel Caruso ([email protected])
--FILE--
<?php
$arr = new SplFixedArray(2);
$arr[0] = 'foo';
$arr[1] = 'bar';
var_dump($arr->offsetGet(0.2));
var_dump($arr->offsetGet(false));
var_dump($arr->offsetGet(true));
?>
--EXPECT--
string(3) "foo"
string(3) "foo"
string(3) "bar"
Function Calls
None |
Stats
MD5 | 5f58023e297e54318d823574ec56b025 |
Eval Count | 0 |
Decode Time | 104 ms |