Aer Interpreter Source
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

43 lines
806 B

class Program {
private int $test = 7;
void testChar(char $value) {
var_dump($value);
var_dump(is_char($value));
}
void testFloat(float $value) {
var_dump($value);
var_dump(is_float($value));
}
void testObject(object $value) {
var_dump($value);
var_dump(is_object($value));
}
void testString(string $value) {
var_dump($value);
var_dump(is_string($value));
}
void testVoid(void $value) {
var_dump($value);
var_dump(is_void($value));
}
public void main() {
object $objval;
void $voidval;
$this->testChar('c');
$this->testChar(NULL);
$this->testFloat(4);
$this->testFloat(56.3);
$this->testObject($objval);
$this->testObject($this);
$this->testString('sample text');
$this->testString(NULL);
$this->testVoid($voidval);
$this->testVoid(NULL);
}
}