1--TEST--
2Timeout within for loop
3--SKIPIF--
4<?php
5if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
6?>
7--FILE--
8<?php
9
10set_time_limit(1);
11
12$y = 0;
13for ($i = 0; $i < INF; $i++) {
14    $y++;
15}
16
17?>
18never reached here
19--EXPECTF--
20Fatal error: Maximum execution time of 1 second exceeded in %s on line %d
21