3v4l.org

run code in 300+ PHP versions simultaneously
<?php $headers = array( 'From' => 'webmaster@example.com', 'Reply-To' => 'webmaster@example.com', 'X-Mailer' => 'PHP/' . phpversion(), ); print_r(implode(array_map( function ($v, $k) { return $k . ': ' . $v; }, $headers, array_keys($headers) ), '\r\n'));
based on 6B5jA
Output for 8.0.0 - 8.0.2
Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /in/DR3ss:13 Stack trace: #0 /in/DR3ss(13): implode(Array, '\\r\\n') #1 {main} thrown in /in/DR3ss on line 13
Process exited with code 255.
Output for 7.4.15
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/DR3ss on line 13 From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.4.15
Output for 7.4.14
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/DR3ss on line 13 From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.4.14
Output for 7.4.13
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/DR3ss on line 13 From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.4.13
Output for 7.4.12
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/DR3ss on line 13 From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.4.12
Output for 7.4.11
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/DR3ss on line 13 From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.4.11
Output for 7.4.10
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/DR3ss on line 13 From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.4.10
Output for 7.4.9
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/DR3ss on line 13 From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.4.9
Output for 7.4.8
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/DR3ss on line 13 From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.4.8
Output for 7.4.7
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/DR3ss on line 13 From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.4.7
Output for 7.4.6
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/DR3ss on line 13 From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.4.6
Output for 7.4.5
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/DR3ss on line 13 From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.4.5
Output for 7.4.4
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/DR3ss on line 13 From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.4.4
Output for 7.4.3
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/DR3ss on line 13 From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.4.3
Output for 7.4.2
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/DR3ss on line 13 From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.4.2
Output for 7.4.1
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/DR3ss on line 13 From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.4.1
Output for 7.4.0
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/DR3ss on line 13 From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.4.0
Output for 7.3.27
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.27
Output for 7.3.26
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.26
Output for 7.3.25
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.25
Output for 7.3.24
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.24
Output for 7.3.23
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.23
Output for 7.3.22
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.22
Output for 7.3.21
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.21
Output for 7.3.20
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.20
Output for 7.3.19
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.19
Output for 7.3.18
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.18
Output for 7.3.17
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.17
Output for 7.3.16
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.16
Output for 7.3.15
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.15
Output for 7.3.14
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.14
Output for 7.3.13
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.13
Output for 7.3.12
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.12
Output for 7.3.11
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.11
Output for 7.3.10
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.10
Output for 7.3.9
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.9
Output for 7.3.8
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.8
Output for 7.3.7
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.7
Output for 7.3.6
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.6
Output for 7.3.5
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.5
Output for 7.3.4
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.4
Output for 7.3.3
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.3
Output for 7.3.2
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.2
Output for 7.3.1
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.1
Output for 7.3.0
From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/7.3.0