3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php interface xi { public function bindColumn ($column ,&$param ); public function bindParam ($parameter ,&$variable ); public function bindValue ($parameter ,$value); public function closeCursor (); public function columnCount (); public function debugDumpParams (); public function errorCode (); public function errorInfo (); public function execute ( ); public function fetch (); public function fetchAll ( ); public function fetchColumn (); public function fetchObject (); public function getAttribute ($attribute ); public function getColumnMeta ($column ); public function nextRowset (); public function rowCount (); public function setAttribute ($attribute ,$value ); public function setFetchMode ($mode ); } class xc implements xi extends PDOStatement { public function bindColumn ($column ,&$param ){} public function bindParam ($parameter ,&$variable ){} public function bindValue ($parameter ,$value){} public function closeCursor (){} public function columnCount (){} public function debugDumpParams (){} public function errorCode (){} public function errorInfo (){} public function execute ( ){} public function fetch (){} public function fetchAll ( ){} public function fetchColumn (){} public function fetchObject (){} public function getAttribute ($attribute ){} public function getColumnMeta ($column ){} public function nextRowset (){} public function rowCount (){} public function setAttribute ($attribute ,$value ){} public function setFetchMode ($mode ){} } function foo(PDOStatement $x) { } foo(new xc);
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected 'extends' (T_EXTENDS), expecting '{' in /in/QV59j on line 23
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_EXTENDS, expecting '{' in /in/QV59j on line 23
Process exited with code 255.