--TEST--
eval() test
--FILE--
<?php 

eval("function test() { echo \"hey, this is a function inside an eval()!\\n\"; }");

$i=0;
while (
$i<10) {
  eval(
"echo \"hey, this is a regular echo'd eval()\\n\";");
  
test();
  
$i++;
}

eval(
'-');
--
EXPECTF--
heythis is a regular echo'd eval()
hey, this is a function inside an eval()!
hey, this is a regular echo'
eval()
heythis is a function inside an eval()!
heythis is a regular echo'd eval()
hey, this is a function inside an eval()!
hey, this is a regular echo'
eval()
heythis is a function inside an eval()!
heythis is a regular echo'd eval()
hey, this is a function inside an eval()!
hey, this is a regular echo'
eval()
heythis is a function inside an eval()!
heythis is a regular echo'd eval()
hey, this is a function inside an eval()!
hey, this is a regular echo'
eval()
heythis is a function inside an eval()!
heythis is a regular echo'd eval()
hey, this is a function inside an eval()!
hey, this is a regular echo'
eval()
heythis is a function inside an eval()!

Parse errorsyntax errorunexpected %s in %s019.php(12) : eval()'d code on line 1