1--TEST--
2JIT Shift Right: 004
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9--FILE--
10<?php
11function test() {
12	$j = 2;
13    for ($i = 0; $i < 10;
14    	$i + $b = $a + $a = $a + $a = $a +
15		    $a = !$a +
16			$c[0] .= 0xfff0001/34028236692903846346336*6) {
17	    $a =!$a + $a &= 74444444 - 444 >> 4 - $j++;
18        if ($j > 14) break;
19    }
20}
21test();
22?>
23--EXPECTF--
24Warning: Undefined variable $a in %sshift_right_004.php on line 8
25
26Warning: Undefined variable $a in %sshift_right_004.php on line 8
27
28Warning: Undefined variable $c in %sshift_right_004.php on line 7
29
30Warning: Undefined array key 0 in %sshift_right_004.php on line 7
31
32Deprecated: Implicit conversion from float %f to int loses precision in %sshift_right_004.php on line 8
33
34Warning: A non-numeric value encountered in %sshift_right_004.php on line 7
35
36Warning: A non-numeric value encountered in %sshift_right_004.php on line 7
37
38Fatal error: Uncaught ArithmeticError: Bit shift by negative number in %sshift_right_004.php:8
39Stack trace:
40#0 %sshift_right_004.php(12): test()
41#1 {main}
42  thrown in %sshift_right_004.php on line 8
43