3v4l.org

run code in 300+ PHP versions simultaneously
<?php $latin1 = base64_decode('UXVhbmQgSWxzIEF2YWllbnQgTW9uIMJnZSAtIDQwIEFucyBEZXZhbnQgTGEgVOls6SAoRXQgQXV0b3VyLi4uKQ'); $fp = fopen('php://memory', 'rb+'); fwrite($fp, $latin1); fseek($fp, 0); //$fp = fopen('compress.zlib://effiliation_BOOKS.csv.gz', 'rb'); stream_filter_prepend($fp, 'convert.iconv.ISO-8859-1/UTF-8', STREAM_FILTER_READ); /* while (! feof($fp)) { $line = fgets($fp, 64 * 1024); if (! mb_check_encoding($line, 'UTF-8')) { echo $line; } } */ $utf8 = stream_get_contents($fp); fclose($fp); echo mb_check_encoding($utf8, 'UTF-8');
Output for git.master, git.master_jit, rfc.property-hooks
Warning: stream_filter_prepend(): Unable to create or locate filter "convert.iconv.ISO-8859-1/UTF-8" in /in/5ad86 on line 9

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:
49.98 ms | 401 KiB | 8 Q