3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function compileEchoes($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); } $this = compileEchoes('http://www.json.org/post_some_stuff?cross_site+something&somethingelse'); echo $this ?>
Output for 5.3.0 - 5.4.28
Fatal error: Cannot re-assign $this in /in/WON8h on line 7
Process exited with code 255.