1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/ext/opcache/tests/preload.inc
2019-02-15 17:50:40 +01:00

49 lines
510 B
PHP

<?php
function f1() {
}
if (isset($rt)) {
function f2() {
}
}
interface a {
function foo();
function bar();
}
interface b {
function foo();
}
abstract class c {
function bar() { }
}
class x extends c implements a, b {
function foo() { }
}
trait T1 {
static function foo() {
var_dump(__METHOD__);
}
}
trait T2 {
use T1;
static function bar() {
var_dump(__METHOD__);
}
}
class Y {
use T2;
}
class Z {
public $foo;
public a $bar;
}
function get_anon() {
return new class {};
}