3v4l.org

run code in 300+ PHP versions simultaneously
<?php function compileEchos($value) { $value = preg_replace ('/\{\{\{\s*(.+?)\s*\}\}\}/s', '<?php echo $1; ?>', $value); return preg_replace ('/\{\{\s*(.+?)\s*\}\}/s', "<?php echo htmlentities($1, ENT_QUOTES, 'UTF-8', false); ?>", $value); } compileEchoes('http://www.json.org/post_some_stuff?cross_site+something&somethingelse')
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected end of file in /in/RcjSJ on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/RcjSJ on line 8
Process exited with code 255.

preferences:
207.18 ms | 1395 KiB | 65 Q