3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $errors = preg_grep('/^E_/', array_keys(get_defined_constants())); $errors = array_combine($errors, array_map('constant', $errors)); asort($errors); foreach ($errors as $constant => $value) { printf("%016b %s\n", $value, $constant); }
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0000000000000001 E_ERROR 0000000000000010 E_WARNING 0000000000000100 E_PARSE 0000000000001000 E_NOTICE 0000000000010000 E_CORE_ERROR 0000000000100000 E_CORE_WARNING 0000000001000000 E_COMPILE_ERROR 0000000010000000 E_COMPILE_WARNING 0000000100000000 E_USER_ERROR 0000001000000000 E_USER_WARNING 0000010000000000 E_USER_NOTICE 0000100000000000 E_STRICT 0001000000000000 E_RECOVERABLE_ERROR 0010000000000000 E_DEPRECATED 0100000000000000 E_USER_DEPRECATED 0111111111111111 E_ALL
Output for 5.3.0 - 5.3.29
0000000000000001 E_ERROR 0000000000000010 E_WARNING 0000000000000100 E_PARSE 0000000000001000 E_NOTICE 0000000000010000 E_CORE_ERROR 0000000000100000 E_CORE_WARNING 0000000001000000 E_COMPILE_ERROR 0000000010000000 E_COMPILE_WARNING 0000000100000000 E_USER_ERROR 0000001000000000 E_USER_WARNING 0000010000000000 E_USER_NOTICE 0000100000000000 E_STRICT 0001000000000000 E_RECOVERABLE_ERROR 0010000000000000 E_DEPRECATED 0100000000000000 E_USER_DEPRECATED 0111011111111111 E_ALL
Output for 5.2.0 - 5.2.17
0000000000000001 E_ERROR 0000000000000010 E_WARNING 0000000000000100 E_PARSE 0000000000001000 E_NOTICE 0000000000010000 E_CORE_ERROR 0000000000100000 E_CORE_WARNING 0000000001000000 E_COMPILE_ERROR 0000000010000000 E_COMPILE_WARNING 0000000100000000 E_USER_ERROR 0000001000000000 E_USER_WARNING 0000010000000000 E_USER_NOTICE 0000100000000000 E_STRICT 0001000000000000 E_RECOVERABLE_ERROR 0001011111111111 E_ALL
Output for 5.0.0 - 5.1.6
0000000000000001 E_ERROR 0000000000000010 E_WARNING 0000000000000100 E_PARSE 0000000000001000 E_NOTICE 0000000000010000 E_CORE_ERROR 0000000000100000 E_CORE_WARNING 0000000001000000 E_COMPILE_ERROR 0000000010000000 E_COMPILE_WARNING 0000000100000000 E_USER_ERROR 0000001000000000 E_USER_WARNING 0000010000000000 E_USER_NOTICE 0000011111111111 E_ALL 0000100000000000 E_STRICT
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_combine() in /in/XbRbG on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_combine() in /in/XbRbG on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_combine() in /in/XbRbG on line 4