3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = ["start" => [/*"lat"=> 1.234,*/ "long"=>4.2134], "end" => ["lat"=>4.314, "long"=>51.341]]; $expectedInputStructure = ["start" => ["lat"=> 0, "long"=>0], "end" => ["lat"=>0, "long"=>0]]; var_dump(array_keys($input), $input); var_dump(array_diff_key($input, $expectedInputStructure));
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> string(5) "start" [1]=> string(3) "end" } array(2) { ["start"]=> array(1) { ["long"]=> float(4.2134) } ["end"]=> array(2) { ["lat"]=> float(4.314) ["long"]=> float(51.341) } } array(0) { }

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:
52.93 ms | 402 KiB | 8 Q