3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a[uno] = 1; $a[dos] = 2; $a[dos] = 3; $a = reg_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/tcbgi on line 10 Notice: Use of undefined constant dos - assumed 'dos' in /in/tcbgi on line 11 Notice: Use of undefined constant dos - assumed 'dos' in /in/tcbgi on line 12 Fatal error: Uncaught Error: Call to undefined function reg_split() in /in/tcbgi:16 Stack trace: #0 {main} thrown in /in/tcbgi on line 16
Process exited with code 255.
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.6.28
Notice: Use of undefined constant uno - assumed 'uno' in /in/tcbgi on line 10 Notice: Use of undefined constant dos - assumed 'dos' in /in/tcbgi on line 11 Notice: Use of undefined constant dos - assumed 'dos' in /in/tcbgi on line 12 Fatal error: Call to undefined function reg_split() in /in/tcbgi on line 16
Process exited with code 255.
Output for 5.2.15 - 5.3.27, 5.4.0 - 5.4.17
Notice: Use of undefined constant uno - assumed 'uno' in /in/euRRN on line 10 Notice: Use of undefined constant dos - assumed 'dos' in /in/euRRN on line 11 Notice: Use of undefined constant dos - assumed 'dos' in /in/euRRN on line 12 Fatal error: Call to undefined function reg_split() in /in/euRRN on line 16
Process exited with code 255.