1<?php
2
3class Foo {
4    public static function test() {
5        return "foo::test";
6    }
7}
8
9if (true) {
10    function foo() {
11        return 'I should be observable';
12    }
13}