3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ ["Paris SG", "Brest", "Monaco", "Nizza", "Lilla", "Lens"], ["Marsiglia", "Rennes", "Reims", "Lione", "Tolosa", "Strasburgo"], ["Le Havre", "Montpellier", "Lorient", "Nantes", "Metz", "Clermont"], ]; $array2 = [ "Sturm Graz", "Rennes", "Sturm Graz", "Reims", "Tolosa", "Le Havre", "Paris SG", "Lione", "Clermont", "Montpellier", "Lorient", "Strasburgo" ]; var_export(array_diff($array2, ...$array1)); echo "\n---\n"; var_export(array_diff_key($array2, array_diff($array2, ...$array1)));
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => 'Sturm Graz', 2 => 'Sturm Graz', ) --- array ( 1 => 'Rennes', 3 => 'Reims', 4 => 'Tolosa', 5 => 'Le Havre', 6 => 'Paris SG', 7 => 'Lione', 8 => 'Clermont', 9 => 'Montpellier', 10 => 'Lorient', 11 => 'Strasburgo', )

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