3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array( 'shopify_product_id' => "369708720", 'shopify_item_id' => "957453564", 'sku' => "SBXX001" ); $array2 = array( 'shopify_product_id' => "218014361", 'shopify_item_id' => "490326013", 'sku' => "ATTXLL001" ); $diff = array_diff($array1, $array2); var_dump($diff);
based on 2Fk31
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
array(3) { ["shopify_product_id"]=> string(9) "369708720" ["shopify_item_id"]=> string(9) "957453564" ["sku"]=> string(7) "SBXX001" }
Output for hhvm-3.10.0

Process exited with code 153.