3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '=?UTF-8?Q?=c3=b8en?='; echo "$input\n"; $output = ''; foreach(imap_mime_header_decode($input) as $element){ if($element->charset == 'utf-8'){ echo "utf8 = $element->text\n"; $output .= $element->text; } else{ echo "default = $element->text\n"; $output .= $element->text; } } $string = preg_replace('/[^a-zæøåA-ZÆØÅ0-9 \-\.,:]/', '', $output); echo "$string\n"; echo strlen($string);
Output for git.master, git.master_jit, rfc.property-hooks
=?UTF-8?Q?=c3=b8en?= Fatal error: Uncaught Error: Call to undefined function imap_mime_header_decode() in /in/AXAdo:5 Stack trace: #0 {main} thrown in /in/AXAdo on line 5
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:
47.82 ms | 401 KiB | 8 Q