- Output for 5.5.24 - 5.5.33, 5.6.8 - 5.6.19, 7.0.0 - 7.0.4
- Parse error: syntax error, unexpected ')' in /in/QYKQi on line 12
Process exited with code 255.
<?php
class Stringable{
public function __toString() { return '';}
}
class NotStringable{ public function __toString(){}}
$stringable = new Stringable();
$notStringable = new NotStringable();
var_dump((string) $stringable));
var_dump(is_string((string) $stringable));