3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<!DOCTYPE html> <html> <body> <?php $a1=array("flagname"=>"LTV Under 50","b"=>"green"); $a2=array("flagname"=>"blue","b"=>"yellow"); print_r(array_replace_recursive((array)$a1,(array)$a2)); ?> </body> </html>
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<!DOCTYPE html> <html> <body> Array ( [flagname] => blue [b] => yellow ) </body> </html>
Output for 5.0.0 - 5.2.17
<!DOCTYPE html> <html> <body> Fatal error: Call to undefined function array_replace_recursive() in /in/cBJtZ on line 8
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<!DOCTYPE html> <html> <body> Fatal error: Call to undefined function: array_replace_recursive() in /in/cBJtZ on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<!DOCTYPE html> <html> <body> Fatal error: Call to undefined function: array_replace_recursive() in /in/cBJtZ on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<!DOCTYPE html> <html> <body> Fatal error: Call to undefined function: array_replace_recursive() in /in/cBJtZ on line 8