3v4l.org

run code in 200+ 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 7.2.0
Warning: Use of undefined constant uno - assumed 'uno' (this will throw an Error in a future version of PHP) in /in/naoqW on line 10 Warning: Use of undefined constant dos - assumed 'dos' (this will throw an Error in a future version of PHP) in /in/naoqW on line 11 Warning: Use of undefined constant dos - assumed 'dos' (this will throw an Error in a future version of PHP) in /in/naoqW on line 12 Warning: preg_split(): No ending delimiter ';' found in /in/naoqW on line 16
Output for 4.3.11 - 7.1.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: preg_split(): 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