3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $result = ''; $ints = [1, 4398574938597, 12345, 123]; foreach ($ints as $int) { $result .= mb_convert_encoding(chr($int),'UTF-8'); } echo strlen($result) . "\n"; for ($i = 0; $i < strlen($result); $i++) { echo "\n parsed: " . utf8_encode($result)[$i]; }
based on 0Esvk
Output for 5.6.0 - 7.3.0beta1
4 parsed:  parsed: ? parsed: 9 parsed: {
Output for 5.5.0 - 5.5.35
5 parsed:  parsed: � parsed: � parsed: � parsed: �