3v4l.org

run code in 150+ 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); ?>
Output for 7.0.0 - 7.1.0
Notice: Use of undefined constant uno - assumed 'uno' in /in/i2itQ on line 10 Notice: Use of undefined constant dos - assumed 'dos' in /in/i2itQ on line 11 Notice: Use of undefined constant dos - assumed 'dos' in /in/i2itQ on line 12 Fatal error: Uncaught Error: Call to undefined function split() in /in/i2itQ:16 Stack trace: #0 {main} thrown in /in/i2itQ on line 16
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Notice: Use of undefined constant uno - assumed 'uno' in /in/i2itQ on line 10 Notice: Use of undefined constant dos - assumed 'dos' in /in/i2itQ on line 11 Notice: Use of undefined constant dos - assumed 'dos' in /in/i2itQ on line 12 Deprecated: Function split() is deprecated in /in/i2itQ on line 16 Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 )
Output for 4.3.0 - 5.2.17
Notice: Use of undefined constant uno - assumed 'uno' in /in/i2itQ on line 10 Notice: Use of undefined constant dos - assumed 'dos' in /in/i2itQ on line 11 Notice: Use of undefined constant dos - assumed 'dos' in /in/i2itQ on line 12 Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 )