3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ordArray($email) { $partes = str_split(trim($email)); $nuevo = ''; foreach ($partes as $valor) { $nuevo .= '&#'.ord($valor).';'; } return $nuevo; } function chrArray($email) { echo $email; $partes = str_split(trim($email)); $nuevo = ''; foreach ($partes as $valor) { $nuevo .= chr(substr($valor, 2, strlen($valor) - 1)); } return $nuevo; } echo chrArray(ordArray('abc123 sasd ewrqewr werewr wererw'));
Output for git.master, git.master_jit, rfc.property-hooks
&#97;&#98;&#99;&#49;&#50;&#51;&#32;&#115;&#97;&#115;&#100;&#32;&#101;&#119;&#114;&#113;&#101;&#119;&#114;&#32;&#119;&#101;&#114;&#101;&#119;&#114;&#32;&#119;&#101;&#114;&#101;&#114;&#119; Fatal error: Uncaught TypeError: chr(): Argument #1 ($codepoint) must be of type int, string given in /in/mYVW1:19 Stack trace: #0 /in/mYVW1(19): chr('') #1 /in/mYVW1(26): chrArray('&#97;&#98;&#99;...') #2 {main} thrown in /in/mYVW1 on line 19
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:
42.51 ms | 402 KiB | 8 Q