- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.29
- Parse error: syntax error, unexpected '(', expecting '{' in /in/b8Nb1 on line 2
Process exited with code 255.
<?php
class Foo() {
public function __toString() {
return '5.7';
}
}
$d = new Foo();
var_dump(version_compare($d, '5.7'));