thread safe vs non thread safe php code example Example: php thread safe or non thread safe thread safe