3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a[uno] = 1; $a[dos] = 2; $a[dos] = 3; $a = split('1;2;3;4',';'); print_r($a); ?>

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
Notice: Use of undefined constant uno - assumed 'uno' in /in/2mCr8 on line 10 Notice: Use of undefined constant dos - assumed 'dos' in /in/2mCr8 on line 11 Notice: Use of undefined constant dos - assumed 'dos' in /in/2mCr8 on line 12 Fatal error: Uncaught Error: Call to undefined function split() in /in/2mCr8:16 Stack trace: #0 {main} thrown in /in/2mCr8 on line 16
Output for Array change keys
Notice: Use of undefined constant uno - assumed 'uno' in /in/2mCr8 on line 10 Notice: Use of undefined constant dos - assumed 'dos' in /in/2mCr8 on line 11 Notice: Use of undefined constant dos - assumed 'dos' in /in/2mCr8 on line 12 Fatal error: Uncaught Error: Call to undefined function split() in /in/2mCr8:16 Stack trace: #0 {main} thrown in /in/2mCr8 on line 16
Output for Lexical anon
Notice: Use of undefined constant uno - assumed 'uno' in /in/2mCr8 on line 10 Notice: Use of undefined constant dos - assumed 'dos' in /in/2mCr8 on line 11 Notice: Use of undefined constant dos - assumed 'dos' in /in/2mCr8 on line 12 Deprecated: Function split() is deprecated in /in/2mCr8 on line 16 Array ( [0] => ; )

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