3v4l.org

run code in 300+ PHP versions simultaneously
<?php $encoding = 'utf-8'; $orig = PHP_VERSION_ID < 50600 ? iconv_get_encoding('internal_encoding') : ini_get('default_charset'); if (PHP_VERSION_ID < 50600) { if ($encoding) { $result = iconv_set_encoding('internal_encoding', $encoding); } else { $result = false; } } else { ini_set('default_charset', $encoding); $result = ini_get('default_charset'); } if (!$result) { echo 'Given encoding not supported on this OS!'; } else { echo 'All good'; }
Output for git.master, git.master_jit, rfc.property-hooks
All good

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.27 ms | 401 KiB | 8 Q