3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php interface PaginatorInterface implements Countable { public function getCurrentPage(); public function getLastPage(); public function getTotal(); public function count(); public function getPerPage(); public function getUrl($page); } class Paginator implements PaginatorInterface { public function getCurrentPage() {} public function getLastPage() {} public function getTotal() {} public function count() {} public function getPerPage() {} public function getUrl($page) {} } new Paginator;
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected 'implements' (T_IMPLEMENTS), expecting '{' in /in/g4HSo on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_IMPLEMENTS, expecting '{' in /in/g4HSo on line 3
Process exited with code 255.