3v4l.org

run code in 300+ PHP versions simultaneously
<?php $binarydata = "\x32\x42\x00\xa0"; $array = unpack("c2/n", $binarydata); var_dump($array); var_dump($packed = pack('a6', '')); // PHP 5.4 $data = "hoge" // PHP 5.5 $data = "hoge\0\0" var_dump($data = unpack('a6', $packed)); // PHP 5.5 $data = "hoge" var_dump($data = unpack('Z6', $packed));
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [1]=> int(160) [2]=> int(66) } string(6) "" array(1) { [1]=> string(6) "" } array(1) { [1]=> string(0) "" }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
42.6 ms | 401 KiB | 8 Q