3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class mGenerator implements Iterator { function rewind(); function valid(); function current(); function key(); function next(); function send($value); //throw(Exception $exception); } $mg = new mGenerator(); var_dump($mg);
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.22
Fatal error: Non-abstract method mGenerator::rewind() must contain body in /in/cBsQp on line 4
Process exited with code 255.

preferences:
176.77 ms | 1387 KiB | 58 Q