3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a[uno] = 1; $a[dos] = 2; $a[dos] = 3; $a = preg_split(';','1;2;3;4'); print_r($a); ?>
Output for 4.3.11 - 5.6.28, 7.0.0 - 7.1.0
Notice: Use of undefined constant uno - assumed 'uno' in /in/naoqW on line 10 Notice: Use of undefined constant dos - assumed 'dos' in /in/naoqW on line 11 Notice: Use of undefined constant dos - assumed 'dos' in /in/naoqW on line 12 Warning: preg_split(): No ending delimiter ';' found in /in/naoqW on line 16
Output for hhvm-3.12.0
Notice: Use of undefined constant uno - assumed 'uno' in /in/naoqW on line -1 Notice: Use of undefined constant dos - assumed 'dos' in /in/naoqW on line -1 Notice: Use of undefined constant dos - assumed 'dos' in /in/naoqW on line -1 Warning: No ending delimiter ';' found: [;] in /in/naoqW on line -1
Output for hhvm-3.10.0
Notice: Use of undefined constant uno - assumed 'uno' in /in/naoqW on line 10 Notice: Use of undefined constant dos - assumed 'dos' in /in/naoqW on line 11 Notice: Use of undefined constant dos - assumed 'dos' in /in/naoqW on line 12 Warning: No ending delimiter ';' found: [;] in /in/naoqW on line 16
Output for 4.3.0 - 4.3.10
Notice: Use of undefined constant uno - assumed 'uno' in /in/naoqW on line 10 Notice: Use of undefined constant dos - assumed 'dos' in /in/naoqW on line 11 Notice: Use of undefined constant dos - assumed 'dos' in /in/naoqW on line 12 Warning: No ending delimiter ';' found in /in/naoqW on line 16