Introduction Xdebug is a PHP extension for powerful debugging. It supports stack and function traces, profiling information and memory allocation and script execution analysis. Install Xdebug on Windows Download php_xdebug.dll from official website. Edit php.ini like this: [xdebug] xdebug.profiler_enable =…
Generators in PHP
PHP official documents say: Generators provide an easy way to implement simple iterators without the overhead or complexity of implementing a class that implements the Iterator interface. Before understanding Generator, we should be understand Object Iteration. We usually use foreach…
Debugging with Xdebug and PhpStorm on OS X
Xdebug is a PHP extension which provides debugging and profiling capabilities. It uses the DBGp debugging protocol. PhpStorm IDE is an intelligent PHP IDE with refactorings, code completion, on-the-fly code analysis and coding productivity orientation. PHP 5.5.37 PhpStorm 2016.1 Build…
Profiling PHP Applications with XHProf
Introduction XHProf is a function-level hierarchical profiler for PHP and has a simple HTML based navigational interface. The raw data collection component is implemented in C (as a PHP extension). Install XHProf on OS X $ brew install php56-xhprof For…