3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
34.63 ms | 401 KiB | 8 Q