3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $code = array_map( function ($line) { return $line ? ' '.$line : $line; }, explode("\n", "something something2 something3") ); return sprintf( "if (%s)\n{\n%s}\n", implode(' && ', 'and or bla'), $code );
based on ASv4s
Output for 7.0.20, 7.1.5 - 7.2.0
Warning: implode(): Invalid arguments passed in /in/U9Von on line 13 Notice: Array to string conversion in /in/U9Von on line 14
Output for 7.0.0 - 7.0.6, 7.1.0
Warning: implode(): Invalid arguments passed in /in/U9Von on line 13 Notice: Array to string conversion in /in/U9Von on line 13
Output for 5.4.0 - 5.6.28
Warning: implode(): Invalid arguments passed in /in/U9Von on line 13 Notice: Array to string conversion in /in/U9Von on line 15
Output for 5.3.19 - 5.3.29
Warning: implode(): Invalid arguments passed in /in/U9Von on line 13