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-- Test strspn() behavior --FILE-- <?php $a = "22222222aaaa bbb1111 cccc"; $b = "123..

Decoded Output download

--TEST--
Test strspn() behavior
--FILE--
<?php
$a = "22222222aaaa bbb1111 cccc";
$b = "1234";
var_dump($a);
var_dump($b);
var_dump(strspn($a,$b));
var_dump(strspn($a,$b,2));
var_dump(strspn($a,$b,2,3));
?>
--EXPECT--
string(25) "22222222aaaa bbb1111 cccc"
string(4) "1234"
int(8)
int(6)
int(3)

Did this file decode correctly?

Original Code

--TEST--
Test strspn() behavior
--FILE--
<?php
$a = "22222222aaaa bbb1111 cccc";
$b = "1234";
var_dump($a);
var_dump($b);
var_dump(strspn($a,$b));
var_dump(strspn($a,$b,2));
var_dump(strspn($a,$b,2,3));
?>
--EXPECT--
string(25) "22222222aaaa bbb1111 cccc"
string(4) "1234"
int(8)
int(6)
int(3)

Function Calls

var_dump 1

Variables

$a 22222222aaaa bbb1111 cccc
$b 1234

Stats

MD5 89ae4c9a8ed21226faa1e1b75630b9ae
Eval Count 0
Decode Time 98 ms