3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://bugs.php.net/bug.php?id=18556 // Set language to desired language $g_lang = 'tr_TR'; putenv("LANG=$g_lang"); if (setlocale(LC_ALL, $g_lang) === false) { throw new Exception('Setting locale failed.'); } class InfoBlob { public $foo; function InfoBlob() { $this->foo = "Foo"; } } echo ("Instantiating an infoBlob with a lowercase i\n"); $foobar = new infoBlob(); echo ($foobar->foo); echo ("\nInstantiating an InfoBlob with an uppercase I\n"); $foobar = new InfoBlob(); echo ($foobar->foo);
Output for git.master, git.master_jit, rfc.property-hooks
Instantiating an infoBlob with a lowercase i Instantiating an InfoBlob with an uppercase I

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