inc_022.phpt 474 B

12345678910111213141516171819202122232425262728293031
  1. --TEST--
  2. JIT INC: 022
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.file_update_protection=0
  7. opcache.jit_buffer_size=1M
  8. opcache.protect_memory=1
  9. ;opcache.jit_debug=257
  10. --EXTENSIONS--
  11. opcache
  12. --FILE--
  13. <?php
  14. function inc($x) {
  15. return ++$x;
  16. }
  17. function dec($x) {
  18. return --$x;
  19. }
  20. var_dump(inc("abc"));
  21. var_dump(inc("5"));
  22. var_dump(inc(1.1));
  23. var_dump(dec("5"));
  24. var_dump(dec(1.1));
  25. ?>
  26. --EXPECT--
  27. string(3) "abd"
  28. int(6)
  29. float(2.1)
  30. int(4)
  31. float(0.10000000000000009)