3v4l.org

run code in 300+ PHP versions simultaneously
<?php $product = array( array("id"=>1,"parentId"=>0,"stock"=>10), array("id"=>2,"parentId"=>1,"stock"=>11), array("id"=>3,"parentId"=>1,"stock"=>12), array("id"=>4,"parentId"=>0,"stock"=>13) ); $id = array(); $id[] = $item['id']; $parentId = array(); $parentId[] = $item['parentId']; print_r(array_intersect($id,$parentId));
Output for git.master, git.master_jit
Warning: Undefined variable $item in /in/vjAAt on line 9 Warning: Trying to access array offset on value of type null in /in/vjAAt on line 9 Warning: Undefined variable $item in /in/vjAAt on line 11 Warning: Trying to access array offset on value of type null in /in/vjAAt on line 11 Array ( [0] => )
Output for rfc.property-hooks
Warning: Undefined variable $item in /in/vjAAt on line 9 Warning: Trying to access array offset on null in /in/vjAAt on line 9 Warning: Undefined variable $item in /in/vjAAt on line 11 Warning: Trying to access array offset on null in /in/vjAAt on line 11 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:
55.65 ms | 401 KiB | 8 Q