3v4l.org

run code in 500+ PHP versions simultaneously
<?php // https://bugs.php.net/bug.php?id=18556 // Set language to desired language $g_lang = 'tr_TR.iso8859-9'; 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<br>'); $foobar = new infoBlob(); echo ($foobar->foo); echo ('<br>Instantiating an InfoBlob with an uppercase I<br>'); $foobar = new InfoBlob(); echo ($foobar->foo);
Output for 8.4.26 - 8.4.27, 8.5.0 - 8.5.12
Instantiating an infoBlob with a lowercase i<br><br>Instantiating an InfoBlob with an uppercase I<br>

preferences:
27.53 ms | 1159 KiB | 6 Q