3v4l.org

run code in 300+ PHP versions simultaneously
<?php // http://www.php.net/manual/en/language.types.string.php#language.types.string.casting - note $lang = "tr"; $codeset = "UTF8"; // warning ! not UTF-8 with dash '-' // for windows compatibility (e.g. xampp) : theses 3 lines are useless for linux systems putenv('LANG='.$lang.'.'.$codeset); putenv('LANGUAGE='.$lang.'.'.$codeset); //bind_textdomain_codeset('mydomain', $codeset); // set locale //bindtextdomain('mydomain', ABSPATH.'/locale/'); setlocale(LC_ALL, $lang.'.'.$codeset); //textdomain('mydomain'); //setlocale(LC_ALL, null); echo '<script> var pi = ' . 3.14 . '; alert("pi: " + pi) </script>';
Output for git.master, git.master_jit, rfc.property-hooks
<script> var pi = 3.14; alert("pi: " + pi) </script>

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