3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php set_time_limit(0); $length = 3; $charset = sprintf('%s', implode('',array_merge(range('0', '9'),range('a', 'z'),range('A', 'Z')))); for ($i = 0; $i < strlen($charset); $i++) $a[] = $charset{$i}; for ($i = 0, $c = "", $d = "$str="; $i < $length; $i++){ $c .= "foreach(\$a as \$b[$i])"; $d .= "\$b[$i]."; } eval($c.$d."\"\";if(strpos(md5(\$str),'202cb962ac59075b964b07152d234b70')!== false){print\"\$str ==pass\n\";}");
Output for 5.1.0 - 5.4.10, 7.0.0 - 7.1.0
Notice: Undefined variable: str in /in/q6sXa on line 7 Parse error: syntax error, unexpected '=' in /in/q6sXa(11) : eval()'d code on line 1
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: str in /in/q6sXa on line 7 Fatal error: syntax error, unexpected '=' in /in/q6sXa(11)(f8c3ed8febc0c19660b3f5c9e46f5628) : eval()'d code on line 1
Output for 5.4.11 - 5.6.28
Notice: Undefined variable: str in /in/q6sXa on line 7 Parse error: syntax error, unexpected '=' in /in/q6sXa(11) : eval()'d code on line 1
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: str in /in/q6sXa on line 7 Parse error: parse error, unexpected '=' in /in/q6sXa(11) : eval()'d code on line 1
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.3
Notice: Undefined variable: str in /in/q6sXa on line 7 Parse error: parse error, unexpected '=' in /in/q6sXa(11) : eval()'d code on line 1
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Notice: Undefined variable: str in /in/q6sXa on line 7 Parse error: syntax error, unexpected '=' in /in/q6sXa(11) : eval()'d code on line 1
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Notice: Undefined variable: str in /in/q6sXa on line 7 Parse error: parse error in /in/q6sXa(11) : eval()'d code on line 1
Process exited with code 255.