3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array_1 = array("1a" =>"dogs","2a" => "cats","3a" => "birds","4a" => "people"); $array_2 = array("4a" => "walking","2a" => "cats"); foreach ($array_1 as $key_1 => $value_1) { if (array_key_exists($key_1, $array_2)) { $array_1[$key_1] = $array_2[$key_1]; } } prit_r($array_1);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function prit_r() in /in/pHMA7:11 Stack trace: #0 {main} thrown in /in/pHMA7 on line 11
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function prit_r() in /in/pHMA7 on line 11
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: prit_r() in /in/pHMA7 on line 11
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: prit_r() in /in/pHMA7 on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: prit_r() in /in/pHMA7 on line 11