3v4l.org

run code in 300+ PHP versions simultaneously
<?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 ){} } function foo(xi $x) { } foo(new xc);
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Declaration of xc::bindColumn($column, &$param) must be compatible with PDOStatement::bindColumn(string|int $column, mixed &$var, int $type = PDO::PARAM_STR, int $maxLength = 0, mixed $driverOptions = null): bool in /in/HlVnF on line 24
Process exited with code 255.
Output for 8.0.5 - 8.0.30
Fatal error: Declaration of xc::bindColumn($column, &$param) must be compatible with PDOStatement::bindColumn(string|int $column, mixed &$var, int $type = PDO::PARAM_STR, int $maxLength = 0, mixed $driverOptions = null) in /in/HlVnF on line 24
Process exited with code 255.
Output for 8.0.0 - 8.0.3
Fatal error: Declaration of xc::bindColumn($column, &$param) must be compatible with PDOStatement::bindColumn(string|int $column, mixed &$var, int $type = 0, int $maxLength = 0, mixed $driverOptions = null) in /in/HlVnF on line 24
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Warning: Declaration of xc::execute() should be compatible with PDOStatement::execute($bound_input_params = NULL) in /in/HlVnF on line 32 Warning: Declaration of xc::fetch() should be compatible with PDOStatement::fetch($how = NULL, $orientation = NULL, $offset = NULL) in /in/HlVnF on line 33 Warning: Declaration of xc::bindParam($parameter, &$variable) should be compatible with PDOStatement::bindParam($paramno, &$param, $type = NULL, $maxlen = NULL, $driverdata = NULL) in /in/HlVnF on line 25 Warning: Declaration of xc::bindColumn($column, &$param) should be compatible with PDOStatement::bindColumn($column, &$param, $type = NULL, $maxlen = NULL, $driverdata = NULL) in /in/HlVnF on line 24 Warning: Declaration of xc::bindValue($parameter, $value) should be compatible with PDOStatement::bindValue($paramno, $param, $type = NULL) in /in/HlVnF on line 26 Warning: Declaration of xc::fetchColumn() should be compatible with PDOStatement::fetchColumn($column_number = NULL) in /in/HlVnF on line 35 Warning: Declaration of xc::fetchAll() should be compatible with PDOStatement::fetchAll($how = NULL, $class_name = NULL, $ctor_args = NULL) in /in/HlVnF on line 34 Warning: Declaration of xc::fetchObject() should be compatible with PDOStatement::fetchObject($class_name = NULL, $ctor_args = NULL) in /in/HlVnF on line 36 Warning: Declaration of xc::setFetchMode($mode) should be compatible with PDOStatement::setFetchMode($mode, $params = NULL) in /in/HlVnF on line 42
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.12 - 7.3.33
Warning: Declaration of xc::execute() should be compatible with PDOStatement::execute($bound_input_params = NULL) in /in/HlVnF on line 23 Warning: Declaration of xc::fetch() should be compatible with PDOStatement::fetch($how = NULL, $orientation = NULL, $offset = NULL) in /in/HlVnF 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/HlVnF 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/HlVnF on line 23 Warning: Declaration of xc::bindValue($parameter, $value) should be compatible with PDOStatement::bindValue($paramno, $param, $type = NULL) in /in/HlVnF on line 23 Warning: Declaration of xc::fetchColumn() should be compatible with PDOStatement::fetchColumn($column_number = NULL) in /in/HlVnF on line 23 Warning: Declaration of xc::fetchAll() should be compatible with PDOStatement::fetchAll($how = NULL, $class_name = NULL, $ctor_args = NULL) in /in/HlVnF on line 23 Warning: Declaration of xc::fetchObject() should be compatible with PDOStatement::fetchObject($class_name = NULL, $ctor_args = NULL) in /in/HlVnF on line 23 Warning: Declaration of xc::setFetchMode($mode) should be compatible with PDOStatement::setFetchMode($mode, $params = NULL) in /in/HlVnF on line 23
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28
Strict Standards: Declaration of xc::execute() should be compatible with PDOStatement::execute($bound_input_params = NULL) in /in/HlVnF on line 23 Strict Standards: Declaration of xc::fetch() should be compatible with PDOStatement::fetch($how = NULL, $orientation = NULL, $offset = NULL) in /in/HlVnF 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/HlVnF 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/HlVnF on line 23 Strict Standards: Declaration of xc::bindValue() should be compatible with PDOStatement::bindValue($paramno, $param, $type = NULL) in /in/HlVnF on line 23 Strict Standards: Declaration of xc::fetchColumn() should be compatible with PDOStatement::fetchColumn($column_number = NULL) in /in/HlVnF 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/HlVnF on line 23 Strict Standards: Declaration of xc::fetchObject() should be compatible with PDOStatement::fetchObject($class_name = NULL, $ctor_args = NULL) in /in/HlVnF on line 23 Strict Standards: Declaration of xc::setFetchMode() should be compatible with PDOStatement::setFetchMode($mode, $params = NULL) in /in/HlVnF on line 23
Output for 5.2.5 - 5.2.17, 5.3.0 - 5.3.29
Strict Standards: Declaration of xc::execute() should be compatible with that of PDOStatement::execute() in /in/HlVnF on line 23 Strict Standards: Declaration of xc::fetch() should be compatible with that of PDOStatement::fetch() in /in/HlVnF on line 23 Strict Standards: Declaration of xc::bindParam() should be compatible with that of PDOStatement::bindParam() in /in/HlVnF on line 23 Strict Standards: Declaration of xc::bindColumn() should be compatible with that of PDOStatement::bindColumn() in /in/HlVnF on line 23 Strict Standards: Declaration of xc::bindValue() should be compatible with that of PDOStatement::bindValue() in /in/HlVnF on line 23 Strict Standards: Declaration of xc::fetchColumn() should be compatible with that of PDOStatement::fetchColumn() in /in/HlVnF on line 23 Strict Standards: Declaration of xc::fetchAll() should be compatible with that of PDOStatement::fetchAll() in /in/HlVnF on line 23 Strict Standards: Declaration of xc::fetchObject() should be compatible with that of PDOStatement::fetchObject() in /in/HlVnF on line 23 Strict Standards: Declaration of xc::setFetchMode() should be compatible with that of PDOStatement::setFetchMode() in /in/HlVnF on line 23
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.4
Output for 5.0.0 - 5.0.5
Fatal error: Class 'PDOStatement' not found in /in/HlVnF 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/HlVnF on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1
Parse error: parse error, unexpected T_STRING in /in/HlVnF on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/HlVnF on line 2
Process exited with code 255.

preferences:
230.66 ms | 401 KiB | 315 Q