- <?php
- error_Reporting(E_ALL);
-
- include 'PHPCodeAnalyzer.php';
- $analyzer = new PHPCodeAnalyzer();
- $analyzer->source = file_get_contents(__FILE__);
- $analyzer->analyze();
- echo "<pre>";
- unset($analyzer->source);
- print_r($analyzer);
- eval ('echo "bad guy";');
- eval("echo 'bad guy!';");
-
- echo "\n\nRandom Testing Junk\n";
- function test()
- {
- echo "Boo\n";
- }
-
- ?>
- Hi mom
- <?php
-
- class test
- {
- function hello($h)
- {
- echo $h;
- }
- }
- $a = new test();
- $a = new test;
- $a->hello("Hello World\n");
- $a->blah = "blah";
- test::hello("Hello Again\n");
- test();
-
- eval(" function test2() {} ");
- echo "test\n";
- $B = "test";
- print "hi $B\n";
-
- define('blah',true);
- ?>