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) { die('Setting locale failed.'); } class InfoBlob { function InfoBlob() { $this->foo = "Foo"; } } echo ("Instantiating an infoBlob with a lowercase i\n"); $foobar = new infoBlob(); echo ("$foobar->foo\n"); echo ("Instantiating an InfoBlob with an uppercase I\n"); $foobar = new InfoBlob(); echo ("$foobar->foo\n");
Output for git.master, git.master_jit, rfc.property-hooks
Instantiating an infoBlob with a lowercase i Warning: Undefined property: InfoBlob::$foo in /in/ujTe7 on line 22 Instantiating an InfoBlob with an uppercase I Warning: Undefined property: InfoBlob::$foo in /in/ujTe7 on line 25

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:
48.94 ms | 402 KiB | 8 Q