3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types = 1); $contributors = ['Me', 'To']; $results = array_walk($contributors, function(string $contributor) : string { return sprintf("%s, thank you very much for PHP7!", $contributor); }); echo implode("\n", $results);
based on LA9WG
Output for 7.0.0 - 7.2.0
Warning: implode(): Invalid arguments passed in /in/Wu7HB on line 7
Output for 5.4.10 - 5.6.28
Warning: Unsupported declare 'strict_types' in /in/Wu7HB on line 2 Parse error: syntax error, unexpected ':', expecting '{' in /in/Wu7HB on line 4
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Warning: Unsupported declare 'strict_types' in /in/Wu7HB on line 2 Parse error: syntax error, unexpected '[' in /in/Wu7HB on line 3
Process exited with code 255.