3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(get_class_constants('PDO'));
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function get_class_constants() in /in/PIjnF:3 Stack trace: #0 {main} thrown in /in/PIjnF on line 3
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
array(81) { ["ATTR_FETCH_CATALOG_NAMES"]=> int(15) ["MYSQL_ATTR_USE_BUFFERED_QUERY"]=> int(1000) ["MYSQL_ATTR_MAX_BUFFER_SIZE"]=> int(1005) ["MYSQL_ATTR_READ_DEFAULT_FILE"]=> int(1003) ["MYSQL_ATTR_READ_DEFAULT_GROUP"]=> int(1004) ["PARAM_BOOL"]=> int(5) ["PARAM_NULL"]=> int(0) ["PARAM_INT"]=> int(1) ["PARAM_STR"]=> int(2) ["PARAM_LOB"]=> int(3) ["PARAM_STMT"]=> int(4) ["PARAM_INPUT_OUTPUT"]=> int(2147483648) ["PARAM_EVT_ALLOC"]=> int(0) ["PARAM_EVT_FREE"]=> int(1) ["PARAM_EVT_EXEC_PRE"]=> int(2) ["PARAM_EVT_EXEC_POST"]=> int(3) ["PARAM_EVT_FETCH_PRE"]=> int(4) ["PARAM_EVT_FETCH_POST"]=> int(5) ["PARAM_EVT_NORMALIZE"]=> int(6) ["FETCH_USE_DEFAULT"]=> int(0) ["FETCH_LAZY"]=> int(1) ["FETCH_ASSOC"]=> int(2) ["FETCH_NUM"]=> int(3) ["FETCH_BOTH"]=> int(4) ["FETCH_OBJ"]=> int(5) ["FETCH_BOUND"]=> int(6) ["FETCH_COLUMN"]=> int(7) ["FETCH_CLASS"]=> int(8) ["FETCH_INTO"]=> int(9) ["FETCH_FUNC"]=> int(10) ["FETCH_GROUP"]=> int(65536) ["FETCH_UNIQUE"]=> int(196608) ["FETCH_KEY_PAIR"]=> int(12) ["FETCH_CLASSTYPE"]=> int(262144) ["FETCH_SERIALIZE"]=> int(524288) ["FETCH_PROPS_LATE"]=> int(1048576) ["FETCH_NAMED"]=> int(11) ["ATTR_AUTOCOMMIT"]=> int(0) ["ATTR_PREFETCH"]=> int(1) ["ATTR_TIMEOUT"]=> int(2) ["ATTR_ERRMODE"]=> int(3) ["ATTR_SERVER_VERSION"]=> int(4) ["ATTR_CLIENT_VERSION"]=> int(5) ["ATTR_SERVER_INFO"]=> int(6) ["ATTR_CONNECTION_STATUS"]=> int(7) ["ATTR_CASE"]=> int(8) ["ATTR_CURSOR_NAME"]=> int(9) ["ATTR_CURSOR"]=> int(10) ["ATTR_ORACLE_NULLS"]=> int(11) ["ATTR_PERSISTENT"]=> int(12) ["ATTR_STATEMENT_CLASS"]=> int(13) ["ATTR_FETCH_TABLE_NAMES"]=> int(14) ["ATTR_DRIVER_NAME"]=> int(16) ["ATTR_STRINGIFY_FETCHES"]=> int(17) ["ATTR_MAX_COLUMN_LEN"]=> int(18) ["ATTR_EMULATE_PREPARES"]=> int(20) ["ATTR_DEFAULT_FETCH_MODE"]=> int(19) ["ERRMODE_SILENT"]=> int(0) ["ERRMODE_WARNING"]=> int(1) ["ERRMODE_EXCEPTION"]=> int(2) ["CASE_NATURAL"]=> int(0) ["CASE_LOWER"]=> int(2) ["CASE_UPPER"]=> int(1) ["NULL_NATURAL"]=> int(0) ["NULL_EMPTY_STRING"]=> int(1) ["NULL_TO_STRING"]=> int(2) ["FETCH_ORI_NEXT"]=> int(0) ["FETCH_ORI_PRIOR"]=> int(1) ["FETCH_ORI_FIRST"]=> int(2) ["FETCH_ORI_LAST"]=> int(3) ["FETCH_ORI_ABS"]=> int(4) ["FETCH_ORI_REL"]=> int(5) ["CURSOR_FWDONLY"]=> int(0) ["CURSOR_SCROLL"]=> int(1) ["MYSQL_ATTR_LOCAL_INFILE"]=> int(1001) ["MYSQL_ATTR_INIT_COMMAND"]=> int(1002) ["MYSQL_ATTR_COMPRESS"]=> int(1006) ["MYSQL_ATTR_DIRECT_QUERY"]=> int(1007) ["MYSQL_ATTR_FOUND_ROWS"]=> int(1008) ["MYSQL_ATTR_IGNORE_SPACE"]=> int(1009) ["ERR_NONE"]=> string(5) "00000" }
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function get_class_constants() in /in/PIjnF on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: get_class_constants() in /in/PIjnF on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: get_class_constants() in /in/PIjnF on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: get_class_constants() in /in/PIjnF on line 3