- Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17, 7.0.0 - 7.0.2
- Parse error: syntax error, unexpected 'var' (T_VAR), expecting variable (T_VARIABLE) in /in/NQrlW on line 23
Process exited with code 255.
<?php
function test($var) {
echo "Test $var";
}
class foo {
var $arr = array("test");
/*function test($var) {
echo "Test $var";
}*/
}
class moo {
static var $arr = array("test");
/*function test($var) {
echo "Test $var";
}*/
}
$a = new foo();
var_dump($a);;
$a->arr[0]("testvalue");
moo::$arr[0]("another one");
?>