eval.in

Paste #746423

PHP — PHP 5.6.23, pasted 2 years ago (json)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
$argv[1] = 'U3';
$v=unpack('H*',$argv[1]);$e=base_convert($v[1],16,2);echo!stristr($e,'0000')&&!stristr($e,'1111');

echo "\n";

$argv[1] = 48;
$v=unpack('H*',$argv[1]);$e=base_convert($v[1],16,2);echo!stristr($e,'0000')&&!stristr($e,'1111');

echo "\n";

$argv[1] = 'Foobar';
$v=unpack('H*',$argv[1]);$e=base_convert($v[1],16,2);echo!stristr($e,'0000')&&!stristr($e,'1111');

echo "\n";

$argv[1] = 'Feeber';
$v=unpack('H*',$argv[1]);$e=base_convert($v[1],16,2);echo!stristr($e,'0000')&&!stristr($e,'1111');

echo "\n";

$argv[1] = '$H';
$v=unpack('H*',$argv[1]);$e=base_convert($v[1],16,2);echo!stristr($e,'0000')&&!stristr($e,'1111');

echo "\n";

$argv[1] = '';
$v=unpack('H*',$argv[1]);$e=base_convert($v[1],16,2);echo!stristr($e,'0000')&&!stristr($e,'1111');

Program Output

1


1
1
1

OK (0.012 sec real, 0.014 sec wall, 14 MB, 50 syscalls)

Fork