mul_001.phpt 462 B

1234567891011121314151617181920212223242526272829303132
  1. --TEST--
  2. JIT MUL: 001 integer multiplay
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.file_update_protection=0
  7. opcache.jit_buffer_size=32M
  8. ;opcache.jit_debug=257
  9. --EXTENSIONS--
  10. opcache
  11. --FILE--
  12. <?php
  13. function mul2(int $a) {
  14. $res = $a * 2;
  15. var_dump($res);
  16. }
  17. function mul4(int $a) {
  18. $res = $a * 4;
  19. var_dump($res);
  20. }
  21. function mul111(int $a) {
  22. $res = $a * 111;
  23. var_dump($res);
  24. }
  25. mul2(3);
  26. mul4(3);
  27. mul111(3);
  28. ?>
  29. --EXPECT--
  30. int(6)
  31. int(12)
  32. int(333)