3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 1234567890; $hex = strtoupper(dechex($number)); $hex_padded = str_pad($hex, 9*2, "0", STR_PAD_LEFT); preg_match_all('/.{2}/', $hex_padded, $matches); $result = array_reverse($matches[0]); var_dump($result);
Output for git.master, git.master_jit, rfc.property-hooks
array(9) { [0]=> string(2) "D2" [1]=> string(2) "02" [2]=> string(2) "96" [3]=> string(2) "49" [4]=> string(2) "00" [5]=> string(2) "00" [6]=> string(2) "00" [7]=> string(2) "00" [8]=> string(2) "00" }

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:
43.31 ms | 401 KiB | 8 Q