3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = "66b3b0d86b56dfca4c8ca3e883700ac6"; $key = str2hex_array($key); print_r($key); function str2hex_array($str){ $str_arr = str_split(strToUpper($str), 2); //$str_hex = array(); $str_hex = ""; for ($i=0; $i < count($str_arr); $i++){ $ord1 = ord($str_arr[$i][0])-48; $ord2 = ord($str_arr[$i][1])-48; if ($ord1 > 16) $ord1 = $ord1 - 7; if ($ord2 > 16) $ord2 = $ord2 - 7; $str_hex[$i] = $ord1 * 16 + $ord2; } return $str_hex; }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Only the first byte will be assigned to the string offset in /in/YoHIc on line 15 Warning: Only the first byte will be assigned to the string offset in /in/YoHIc on line 15 Warning: Only the first byte will be assigned to the string offset in /in/YoHIc on line 15 Warning: Only the first byte will be assigned to the string offset in /in/YoHIc on line 15 Warning: Only the first byte will be assigned to the string offset in /in/YoHIc on line 15 Warning: Only the first byte will be assigned to the string offset in /in/YoHIc on line 15 Warning: Only the first byte will be assigned to the string offset in /in/YoHIc on line 15 Warning: Only the first byte will be assigned to the string offset in /in/YoHIc on line 15 Warning: Only the first byte will be assigned to the string offset in /in/YoHIc on line 15 Warning: Only the first byte will be assigned to the string offset in /in/YoHIc on line 15 Warning: Only the first byte will be assigned to the string offset in /in/YoHIc on line 15 Warning: Only the first byte will be assigned to the string offset in /in/YoHIc on line 15 Warning: Only the first byte will be assigned to the string offset in /in/YoHIc on line 15 Warning: Only the first byte will be assigned to the string offset in /in/YoHIc on line 15 Warning: Only the first byte will be assigned to the string offset in /in/YoHIc on line 15 Warning: Only the first byte will be assigned to the string offset in /in/YoHIc on line 15 1112182271121111

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:
99.7 ms | 409 KiB | 5 Q