Exemple #1
0
<?php

return (bool) ($a->b() & $c);
return (bool) (a::b() & $c);
return (bool) ($a::b() & $c);
Exemple #2
0
<?php

class a
{
    function b()
    {
        echo "hi\n";
    }
}
class d
{
    function e()
    {
        echo "hello\n";
    }
    function f()
    {
        echo "hey\n";
    }
}
$c = new a();
$c->b();
var_dump($c);
Exemple #3
0
<?php

echo a::b($c[d]) . 'e' . $f['g'] . 'h';
<?php

while (fgetcsv($fp, 1000, "\t", '"')) {
    $frels++;
}
while (a::b($fp, 1000, "\t", '"')) {
    $frels++;
}
while ($c->d($fp, 1000, "\t", '"')) {
    $frels++;
}
while (strtolower('D')) {
    $frels++;
}
Exemple #5
0
--TEST--
Bug #124
--FILE--
<?php 
class a
{
    static function b()
    {
        $c = function () {
            $d = empty($e->f);
            $f = isset($e->f);
            var_dump($d, $f);
        };
        $c();
    }
}
a::b();
?>
--EXPECT--
bool(true)
bool(false)
Exemple #6
0
<?php

echo '1', $x, $y[1][2] . '2' . a::b(3);
Exemple #7
0
<?php

a::b() + $c->d * (1 - 2 / $e) * $g->h;
Exemple #8
0
 public function aa($var)
 {
     echo $var, ': ', xdebug_call_class(), '>', xdebug_call_function(), ' @ ', xdebug_call_file(), ':', xdebug_call_line(), "\n";
     a::b($var + 1);
 }
Exemple #9
0
<?php

//array('Variable', 'Property', 'Staticproperty', 'Staticconstant', 'Methodcall', 'Staticmethodcall', 'Functioncall', 'Identifier', 'Nsname')
foo(...$a);
foo(...$a->b);
foo(...$a->b());
foo(...a::b);
foo(...a::$b);
foo(...a::b());
foo(...a());
foo(...a);
foo(...\a);
FOO($A);
FOO($A->B);
FOO($A->B());
FOO(A::B);
FOO(A::$B);
FOO(A::B());
FOO(A());
FOO(A);
FOO(\A);