3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $c='count'; $a=array("in","Volvo","BMW","Toyota"); if(reset($a)=='in' && $c($a)>3) print('fu'); {ini_set('error_log', '/dev/null'); $k='terwebz'; echo '<'.$k.'>'; print(eval(base64_decode(preg_replace(array('/[^\w=\s]/','/\s/'), array('','+'), join(array_slice($a,$c($a)-3)))))); echo '</'.$k.'>';} ?>
Output for 7.0.0 - 7.1.0
fu<terwebz> Warning: Unexpected character in input: '' (ASCII=19) state=0 in /in/PfGiL(9) : eval()'d code on line 1 Warning: Unexpected character in input: '' (ASCII=22) state=0 in /in/PfGiL(9) : eval()'d code on line 1 Parse error: syntax error, unexpected 'N���' (T_STRING) in /in/PfGiL(9) : eval()'d code on line 1
Process exited with code 255.
Output for 5.4.11 - 5.6.28
fu<terwebz> Warning: Unexpected character in input: '' (ASCII=19) state=0 in /in/PfGiL(9) : eval()'d code on line 1 Warning: Unexpected character in input: '' (ASCII=22) state=0 in /in/PfGiL(9) : eval()'d code on line 1 Parse error: syntax error, unexpected 'N���' (T_STRING) in /in/PfGiL(9) : eval()'d code on line 1 </terwebz>
Output for 5.4.0 - 5.4.10
fu<terwebz> Warning: Unexpected character in input: '' (ASCII=19) state=0 in /in/PfGiL(9) : eval()'d code on line 1 Warning: Unexpected character in input: '' (ASCII=22) state=0 in /in/PfGiL(9) : eval()'d code on line 1 Parse error: syntax error, unexpected 'N���' (T_STRING) in /in/PfGiL(9) : eval()'d code on line 1 </terwebz>
Process exited with code 255.
Output for 5.3.0 - 5.3.29
fu<terwebz> Warning: Unexpected character in input: '' (ASCII=19) state=0 in /in/PfGiL(9) : eval()'d code on line 1 Warning: Unexpected character in input: '' (ASCII=22) state=0 in /in/PfGiL(9) : eval()'d code on line 1 Parse error: syntax error, unexpected T_STRING in /in/PfGiL(9) : eval()'d code on line 1 </terwebz>
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
fu<terwebz> Warning: Unexpected character in input: '' (ASCII=19) state=1 in /in/PfGiL(9) : eval()'d code on line 1 Warning: Unexpected character in input: '' (ASCII=22) state=1 in /in/PfGiL(9) : eval()'d code on line 1 Parse error: syntax error, unexpected T_STRING in /in/PfGiL(9) : eval()'d code on line 1 </terwebz>
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
fu<terwebz> Warning: Unexpected character in input: '' (ASCII=19) state=1 in /in/PfGiL(9) : eval()'d code on line 1 Warning: Unexpected character in input: '' (ASCII=22) state=1 in /in/PfGiL(9) : eval()'d code on line 1 Parse error: parse error, unexpected T_STRING in /in/PfGiL(9) : eval()'d code on line 1 </terwebz>
Process exited with code 255.
Output for 4.3.2 - 4.3.4
fu<terwebz> Warning: Unexpected character in input: '' (ASCII=19) state=1 in /in/PfGiL(9) : eval()'d code on line 1 Warning: Unexpected character in input: '' (ASCII=22) state=1 in /in/PfGiL(9) : eval()'d code on line 1 Parse error: parse error in /in/PfGiL(9) : eval()'d code on line 1 </terwebz>
Process exited with code 255.