3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(array_merge( ['test' => 0, 'shmest' => 0, 'fest' => 0], ['test' => 1], ['shmest' => 1], ['shmest' => 2, 'fest' => 3] )); echo "Плюс массив:" print_r( ['test' => 0, 'shmest' => 0, 'fest' => 0] + ['test' => 1] + ['shmest' => 1] + ['shmest' => 2, 'fest' => 3] );
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected 'print_r' (T_STRING), expecting ',' or ';' in /in/67nk6 on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[', expecting ')' in /in/67nk6 on line 4
Process exited with code 255.