3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array_merge_recursive(array('a'=>'b'), array('a'=>'c'))); var_dump(array_replace(array('a'=>'b'), array('a'=>'c')));
Output for 5.3.0 - 7.1.0
array(1) { ["a"]=> array(2) { [0]=> string(1) "b" [1]=> string(1) "c" } } array(1) { ["a"]=> string(1) "c" }
Output for 5.0.0 - 5.2.17
array(1) { ["a"]=> array(2) { [0]=> string(1) "b" [1]=> string(1) "c" } } Fatal error: Call to undefined function array_replace() in /in/KpYQC on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
array(1) { ["a"]=> array(2) { [0]=> string(1) "b" [1]=> string(1) "c" } } Fatal error: Call to undefined function: array_replace() in /in/KpYQC on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
array(1) { ["a"]=> array(2) { [0]=> string(1) "b" [1]=> string(1) "c" } } Fatal error: Call to undefined function: array_replace() in /in/KpYQC on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
array(1) { ["a"]=> array(2) { [0]=> string(1) "b" [1]=> string(1) "c" } } Fatal error: Call to undefined function: array_replace() in /in/KpYQC on line 4