1--TEST-- 2Bug #77857 (Wrong result if executed with JIT) 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.file_update_protection=0 7opcache.jit_buffer_size=64 8opcache.jit=1205 9--EXTENSIONS-- 10opcache 11--FILE-- 12<?php 13function test() { 14 $arr = array_fill(0, 1, 1.0); 15 $y = 0.0; 16 foreach ($arr as $v) { 17 $tmp = 1.0 * $v; 18 var_dump($tmp); 19 $y = $tmp/1.0; 20 } 21 return $y; 22} 23var_dump(test()); 24?> 25--EXPECT-- 26float(1) 27float(1) 28