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)); $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
Fatal error: Uncaught TypeError: chr(): Argument #1 ($codepoint) must be of type int, string given in /in/fWWq9:15 Stack trace: #0 /in/fWWq9(15): chr('') #1 /in/fWWq9(22): chrArray('&#97;&#98;&#99;...') #2 {main} thrown in /in/fWWq9 on line 15
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:
46.26 ms | 401 KiB | 8 Q