xref: /PHP-7.3/tests/lang/018.phpt (revision 782352c5)
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--EXPECT--
15hey
160
17hey
181
19hey
202
21hey
223
23hey
244
25hey
265
27hey
286
29hey
307
31hey
328
33hey
349
35