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 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'print_r' (T_STRING) in /in/ZNvn5 on line 16
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_STRING in /in/ZNvn5 on line 16
Process exited with code 255.