3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // $source_file includes line breaks $source=join('',file($source_file)); $body=highlight_string ( $source, $return=TRUE); // $body is a single line, without line breaks ?>
Output for 5.5.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: source_file in /in/YFOmj on line 3 Warning: file(): Filename cannot be empty in /in/YFOmj on line 3 Warning: join(): Invalid arguments passed in /in/YFOmj on line 3
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: source_file in /in/YFOmj on line 3 Warning: Filename cannot be empty in /in/YFOmj on line 3 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/YFOmj on line 3
Output for 5.2.9 - 5.4.45
Warning: file(): Filename cannot be empty in /in/YFOmj on line 3 Warning: join(): Invalid arguments passed in /in/YFOmj on line 3
Output for 5.2.5 - 5.2.8
Warning: join(): Invalid arguments passed in /in/YFOmj on line 3
Output for 5.2.3 - 5.2.4
Warning: join(): Bad arguments. in /in/YFOmj on line 3
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: join() [<a href='function.join'>function.join</a>]: Bad arguments. in <b>/in/YFOmj</b> on line <b>3</b><br />
Output for 4.3.2 - 4.4.2
<br /> <b>Warning</b>: join(): Bad arguments. in <b>/in/YFOmj</b> on line <b>3</b><br />
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: join() [<a href='http://www.php.net/function.join'>function.join</a>]: Bad arguments. in <b>/in/YFOmj</b> on line <b>3</b><br />