3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php set_time_limit(0); $length = 4; $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 = "if(strpos(md5("; $i < $length; $i++){ $c .= "foreach(\$a as \$b[$i])"; $d .= "\$b[$i].)"; } echo($c.$d.")),'202cb962ac59075b964b07152d234b70')!== false){print \"\$str==pass\n\";}"); //foreach($a as $b[0])foreach($a as $b[1])foreach($a as $b[2])foreach($a as //$b[3])if(strpos(md5($b[0].)$b[1].)$b[2].)$b[3].),'202cb962ac59075b964b07152d234b70')!== false){print //"$str==pass ";}
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
foreach($a as $b[0])foreach($a as $b[1])foreach($a as $b[2])foreach($a as $b[3])if(strpos(md5($b[0].)$b[1].)$b[2].)$b[3].))),'202cb962ac59075b964b07152d234b70')!== false){print "$str==pass ";}
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/BV27b on line 13
Process exited with code 255.