3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Prepare test data $binstring = "\x07\xB2\x01\x01\x00\x0A\x14\x00"; $values = unpack('nyear/Cmonth/Cday/Chour/Cminute/Csecond/Cdecisecond', $binstring); var_dump($values);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
array(7) { ["year"]=> int(1970) ["month"]=> int(1) ["day"]=> int(1) ["hour"]=> int(0) ["minute"]=> int(10) ["second"]=> int(20) ["decisecond"]=> int(0) }