$phar2 = new Phar('/yourpath/test.phar'); include('phar://test.phar/subdir/test2.php'); test2(); include('phar://test.phar'); test1();