3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ ["Camera1" => "192.168.101.71"], ["Camera2" => "192.168.101.72"], ["Camera3" => "192.168.101.74"], ]; $array2 = [ ["Camera1" => "VT"], ["Camera2" => "UB"], ["Camera3" => "FX"] ]; array_walk_recursive( $array1, fn(&$v) => $v = ['ip' => $v] ); array_walk_recursive( $array2, fn(&$v) => $v = ['name' => $v] ); var_export( array_merge_recursive( ...$array1, ...$array2 ) );
Output for git.master_jit, git.master
array ( 'Camera1' => array ( 'ip' => '192.168.101.71', 'name' => 'VT', ), 'Camera2' => array ( 'ip' => '192.168.101.72', 'name' => 'UB', ), 'Camera3' => array ( 'ip' => '192.168.101.74', 'name' => 'FX', ), )

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:
59.02 ms | 406 KiB | 5 Q