Anatol has been doing some great work with Thread Local Storage (under the native-tls branch).
I have tested it on Windows and its performance and functionality are now the same as master builds (with phpng), though a few extensions included with Windows builds haven't been ported yet. Performance results are here: http://windows.php.net/downloads/snaps/ostc/pftt/perf/ including http://windows.php.net/downloads/snaps/ostc/pftt/perf/results-20141028-master_r87c28cc-native_tls_r5747327-7146.html Note: the master and native-tls builds for Windows have lower performance than 5.5 or 5.6 builds because 5.6 and 5.6 builds are optimized builds (using Profile Guided Optimization) which is not currently done for master or native-tls builds. Regards -M