xref: /php-src/tests/lang/018.phpt (revision 7aacc705)
1--TEST--
2eval() test
3--FILE--
4<?php
5
6error_reporting(0);
7
8$message = "echo \"hey\n\";";
9
10for ($i=0; $i<10; $i++) {
11  eval($message);
12  echo $i."\n";
13}
14?>
15--EXPECT--
16hey
170
18hey
191
20hey
212
22hey
233
24hey
254
26hey
275
28hey
296
30hey
317
32hey
338
34hey
359
36