3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php final class mGenerator implements Iterator { void rewind(); bool valid(); mixed current(); mixed key(); void next(); mixed send(mixed $value); mixed throw(Exception $exception); } $mg = new mGenerator(); var_dump($mg);
Output for 5.4.0 - 5.5.6
Parse error: syntax error, unexpected 'void' (T_STRING), expecting function (T_FUNCTION) in /in/6r96d on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /in/6r96d on line 4
Process exited with code 255.