3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "天在变 我心 融化 谁能懂 恨 与谁共"; function asc2bin($temp) { $len = strlen($temp); for($i=0; $i<$len; $i++) { $data .= sprintf("%08b", ord(substr($temp, $i, 1))); } return $data; } echo asc2bin($str);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $data in /in/Ao5bi on line 12 1110010110100100101010011110010110011100101010001110010110001111100110000000101011100110100010001001000111100101101111111000001100001010111010001001111010001101111001011000110010010110000010101110100010110000100000011110100010000011101111011110011010000111100000100000101011100110100000011010100000001010111001001011100010001110111010001011000010000001111001011000010110110001

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:
38.65 ms | 402 KiB | 8 Q