3v4l.org

run code in 300+ PHP versions simultaneously
<?php function encode($to_encode){ return hexdec(bin2hex($to_encode)); } function decode($numberstr){ return hex2bin(dechex($numberstr)); } $str="the quick brown fox jumps over the lazy dog こどものじかん"; var_dump($str,encode($str),decode(encode($str)));
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: dechex(): Argument #1 ($num) must be of type int, float given in /in/nl8hA:3 Stack trace: #0 /in/nl8hA(3): dechex(1.5607733310506E+156) #1 /in/nl8hA(5): decode(1.5607733310506E+156) #2 {main} thrown in /in/nl8hA on line 3
Process exited with code 255.

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