Skip to content

Instantly share code, notes, and snippets.

@ekinhbayar
Created September 30, 2017 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekinhbayar/d668bd0f3f833519ef228f40fe06400c to your computer and use it in GitHub Desktop.
Save ekinhbayar/d668bd0f3f833519ef228f40fe06400c to your computer and use it in GitHub Desktop.
opcache.opt_debug_level

Produces opcode dumps for debugging different stages of optimizations. php -d opcache.opt_debug_level=0x10000 test.php will output opcodes as the compiler produced them before any optimization occurs. 0x20000 will output optimized opcodes. 0x40000 will produce a control flow graph (CFG). 0x200000 will produce a type and range-inferred static single assignment (SSA) form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment