3v4l.org

run code in 300+ PHP versions simultaneously
<?php $source_packages = array( 'one' => array ('param1' => 'val11', 'param2' => 'val21'), 'two' => array ('param1' => 'val21', 'param2' => 'val22') ); $packages_from = $source_packages; $package_key = 'two'; $package_value = $source_packages[$package_key]; $packages_to = array($package_key => $package_value); $result_packages = array_diff_assoc($packages_from, $packages_to); var_dump($result_packages); echo "\n";
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/CRhEX on line 11 Warning: Array to string conversion in /in/CRhEX on line 11 array(1) { ["one"]=> array(2) { ["param1"]=> string(5) "val11" ["param2"]=> string(5) "val21" } }

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:
32.23 ms | 401 KiB | 8 Q