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) { $partes = str_split(trim($email, '&#32;')); $nuevo = ''; foreach ($partes as $valor) { echo $valor; $nuevo .= chr(substr($valor, 2, strlen($valor) - 1)); } return $nuevo; } chrArray(ordArray('abc123 sasd ewrqewr werewr wererw'));
Output for git.master, git.master_jit, rfc.property-hooks
9 Fatal error: Uncaught TypeError: chr(): Argument #1 ($codepoint) must be of type int, string given in /in/sRhtC:18 Stack trace: #0 /in/sRhtC(18): chr('') #1 /in/sRhtC(25): chrArray('&#97;&#98;&#99;...') #2 {main} thrown in /in/sRhtC on line 18
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:
36.13 ms | 401 KiB | 8 Q