ssa_bug_002.phpt 221 B

123456789101112131415161718
  1. --TEST--
  2. Incorrect NOP removal on jump to NOP
  3. --EXTENSIONS--
  4. opcache
  5. --FILE--
  6. <?php
  7. function test(int $i) : int {
  8. if ($i == 1) {
  9. $x = $i + 1;
  10. }
  11. return $i;
  12. }
  13. var_dump(test(42));
  14. ?>
  15. --EXPECT--
  16. int(42)