3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 'foo' => null, ]; $b = [ 'foo' => 'str', ]; $c = [ 'foo' => [1, 3], ]; echo "1:\n"; var_dump(array_intersect($a, $b)); echo "\n2:\n"; var_dump(array_intersect($b, $c));
Output for git.master, git.master_jit, rfc.property-hooks
1: array(0) { } 2: Warning: Array to string conversion in /in/TYrqn on line 16 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:
29.08 ms | 405 KiB | 5 Q