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 array errorInfo (); public function execute ( ); public function fetch (); public function array fetchAll ( ); public function fetchColumn (); public function fetchObject (); public function getAttribute ($attribute ); public function array getColumnMeta ($column ); public function nextRowset (); public function rowCount (); public function setAttribute ($attribute ,$value ); public function setFetchMode ($mode ); } class xc imlements 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 array errorInfo (){} public function execute ( ){} public function fetch (){} public function array fetchAll ( ){} public function fetchColumn (){} public function fetchObject (){} public function getAttribute ($attribute ){} public function array 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 'array' (T_ARRAY), expecting identifier (T_STRING) in /in/PaGQa on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ARRAY, expecting T_STRING in /in/PaGQa on line 10
Process exited with code 255.