3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testPHPLt8VsPHP8 = array( -10 => 'a', 'b', // PHP < 8: int 0; PHP 8+: -9. 'c', // PHP < 8: int 1; PHP 8+: -8. -4 => 'd', 'e', // PHP < 8: int 2; PHP 8+: -3. -9 => 'f', // Duplicate in PHP 8, not in PHP < 8. -8 => 'g', // Duplicate in PHP 8, not in PHP < 8. -3 => 'h', // Duplicate in PHP 8, not in PHP < 8. 0 => 'i', // Duplicate in PHP < 8, not in PHP 8. 1 => 'j', // Duplicate in PHP < 8, not in PHP 8. 2 => 'k', // Duplicate in PHP < 8, not in PHP 8. ); var_dump($testPHPLt8VsPHP8);
Output for git.master_jit, rfc.property-hooks, git.master
array(8) { [-10]=> string(1) "a" [-9]=> string(1) "f" [-8]=> string(1) "g" [-4]=> string(1) "d" [-3]=> string(1) "h" [0]=> string(1) "i" [1]=> string(1) "j" [2]=> string(1) "k" }

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:
50.98 ms | 2784 KiB | 4 Q