Speed of unpack() in PHP
Programming and Web Development
PHP
I needed to extract a list of integers from a binary string. I was curious to know if PHP’s unpack function is fast compared to a custom function, so I wrote a test for it.<?php$filename = '<some large file>';$unpack_time = 0.0;$unpack_time2 = 0.0;$un...