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 extends PDOStatement implements 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, $lala = null){} } function foo(xi $x) { } foo(new xc);
Output for 7.0.0 - 7.1.0
Warning: Declaration of xc::execute() should be compatible with PDOStatement::execute($bound_input_params = NULL) in /in/3KsPg on line 23 Warning: Declaration of xc::fetch() should be compatible with PDOStatement::fetch($how = NULL, $orientation = NULL, $offset = NULL) in /in/3KsPg on line 23 Warning: Declaration of xc::bindParam($parameter, &$variable) should be compatible with PDOStatement::bindParam($paramno, &$param, $type = NULL, $maxlen = NULL, $driverdata = NULL) in /in/3KsPg on line 23 Warning: Declaration of xc::bindColumn($column, &$param) should be compatible with PDOStatement::bindColumn($column, &$param, $type = NULL, $maxlen = NULL, $driverdata = NULL) in /in/3KsPg on line 23 Warning: Declaration of xc::bindValue($parameter, $value) should be compatible with PDOStatement::bindValue($paramno, $param, $type = NULL) in /in/3KsPg on line 23 Warning: Declaration of xc::fetchColumn() should be compatible with PDOStatement::fetchColumn($column_number = NULL) in /in/3KsPg on line 23 Warning: Declaration of xc::fetchAll() should be compatible with PDOStatement::fetchAll($how = NULL, $class_name = NULL, $ctor_args = NULL) in /in/3KsPg on line 23 Warning: Declaration of xc::fetchObject() should be compatible with PDOStatement::fetchObject($class_name = NULL, $ctor_args = NULL) in /in/3KsPg on line 23
Output for 5.1.0 - 5.2.4, hhvm-3.10.0 - 3.12.0
Output for 5.4.0 - 5.6.28
Strict Standards: Declaration of xc::execute() should be compatible with PDOStatement::execute($bound_input_params = NULL) in /in/3KsPg on line 23 Strict Standards: Declaration of xc::fetch() should be compatible with PDOStatement::fetch($how = NULL, $orientation = NULL, $offset = NULL) in /in/3KsPg on line 23 Strict Standards: Declaration of xc::bindParam() should be compatible with PDOStatement::bindParam($paramno, &$param, $type = NULL, $maxlen = NULL, $driverdata = NULL) in /in/3KsPg on line 23 Strict Standards: Declaration of xc::bindColumn() should be compatible with PDOStatement::bindColumn($column, &$param, $type = NULL, $maxlen = NULL, $driverdata = NULL) in /in/3KsPg on line 23 Strict Standards: Declaration of xc::bindValue() should be compatible with PDOStatement::bindValue($paramno, $param, $type = NULL) in /in/3KsPg on line 23 Strict Standards: Declaration of xc::fetchColumn() should be compatible with PDOStatement::fetchColumn($column_number = NULL) in /in/3KsPg on line 23 Strict Standards: Declaration of xc::fetchAll() should be compatible with PDOStatement::fetchAll($how = NULL, $class_name = NULL, $ctor_args = NULL) in /in/3KsPg on line 23 Strict Standards: Declaration of xc::fetchObject() should be compatible with PDOStatement::fetchObject($class_name = NULL, $ctor_args = NULL) in /in/3KsPg on line 23
Output for 5.2.5 - 5.3.29
Strict Standards: Declaration of xc::execute() should be compatible with that of PDOStatement::execute() in /in/3KsPg on line 23 Strict Standards: Declaration of xc::fetch() should be compatible with that of PDOStatement::fetch() in /in/3KsPg on line 23 Strict Standards: Declaration of xc::bindParam() should be compatible with that of PDOStatement::bindParam() in /in/3KsPg on line 23 Strict Standards: Declaration of xc::bindColumn() should be compatible with that of PDOStatement::bindColumn() in /in/3KsPg on line 23 Strict Standards: Declaration of xc::bindValue() should be compatible with that of PDOStatement::bindValue() in /in/3KsPg on line 23 Strict Standards: Declaration of xc::fetchColumn() should be compatible with that of PDOStatement::fetchColumn() in /in/3KsPg on line 23 Strict Standards: Declaration of xc::fetchAll() should be compatible with that of PDOStatement::fetchAll() in /in/3KsPg on line 23 Strict Standards: Declaration of xc::fetchObject() should be compatible with that of PDOStatement::fetchObject() in /in/3KsPg on line 23
Output for 5.0.0 - 5.0.5
Fatal error: Class 'PDOStatement' not found in /in/3KsPg on line 23
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING in /in/3KsPg on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING in /in/3KsPg on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/3KsPg on line 2
Process exited with code 255.