3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //::('\xF0\x9F\x98\x81') => '=?utf-8?Q?=F0=9F=91=8C?=' f($x) { return preg_replace('/\/x/', '=', $x); } echo f('\xF0\x9F\x98\x81')
Output for 7.0.0
Parse error: syntax error, unexpected 'return' (T_RETURN) in /in/MWodT on line 6
Process exited with code 255.
Output for 5.3.20 - 5.6.16
Parse error: syntax error, unexpected '{' in /in/MWodT on line 5
Process exited with code 255.