<?php
$first = new java("");
$second = new java("java.io.File");
$second->getName();

function hello() {
	$first = new java("");
	$second = new java("java.io.File");
	$second->getName();
}

class Sample {
	function hello() {
		$first = new java("");
		$second = new java("java.io.File");
		$second->getName();
	}
}