3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
fu Warning: ini_set(): open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/tmp:/in:/etc) in /in/PfGiL on line 6 <terwebz> Parse error: syntax error, unexpected character 0x13 in /in/PfGiL(9) : eval()'d code on line 1
Process exited with code 255.
Output for 8.0.13
fu<terwebz> Parse error: syntax error, unexpected character 0x13 in /in/PfGiL(9) : eval()'d code on line 1
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0, 7.3.32 - 7.3.33, 7.4.33
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 7.2.29 - 7.2.33, 7.3.12 - 7.3.31, 7.4.0 - 7.4.32
fu Warning: ini_set(): open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/tmp:/in:/etc) in /in/PfGiL on line 6 <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 7.1.20, 7.2.6
fu Warning: ini_set(): open_basedir restriction in effect. File(/dev/null) is not within the allowed path(s): (/tmp:/in) in /in/PfGiL on line 6 <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.4.45, 5.5.0 - 5.5.38, 5.6.0 - 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.1.6, 5.2.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.3.11, 4.4.0 - 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.

preferences:
236.16 ms | 402 KiB | 356 Q