- var_dump: documentation ( source)
- version_compare: documentation ( source)
<?php
if(version_compare(PHP_VERSION, '5.3.0') < 0) {
return;
}
class c {
public static $f;
public function __construct() {
var_dump(get_class(self::$f));
}
}
c:$f = function() { return 'ok'; };
new c();