3v4l.org

run code in 200+ php & hhvm versions
<?php declare(strict_types=1); var_dump(textdomain(null));
based on eCF0b
Output for 7.1.20, 7.2.6
Fatal error: Uncaught Error: Call to undefined function textdomain() in /in/BRUYj:4 Stack trace: #0 {main} thrown in /in/BRUYj on line 4
Process exited with code 255.
Output for 7.1.10, 7.2.0
string(8) "messages"
Output for 7.0.0 - 7.1.7
Fatal error: Uncaught TypeError: textdomain() expects parameter 1 to be string, null given in /in/BRUYj:4 Stack trace: #0 /in/BRUYj(4): textdomain(NULL) #1 {main} thrown in /in/BRUYj on line 4
Process exited with code 255.
Output for 5.6.0 - 5.6.29
Warning: Unsupported declare 'strict_types' in /in/BRUYj on line 2 string(8) "messages"