3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ [ 'Firepack_sn' => '20012205', 'Installation_Date' => '', 'Type' => 'EH', 'Capacity_m3h' => '81', 'Pressure_bar' => '3,4', 'Rpm' => '2930', 'Power_kw' => '72', ], [ 'Firepack_sn' => '20023901', 'Installation_Date' => '', 'Type' => 'DH', 'Capacity_m3h' => '195', 'Pressure_bar' => '4,2', 'Rpm' => '2000', 'Power_kw' => '72', ], ]; $array2 = [ [ 'user_id' => '40009', 'firepack_id' => '20012205', 'activated' => '1', ], [ 'user_id' => '40009', 'firepack_id' => '21020393', 'activated' => '0', ], ]; var_export( array_uintersect( $array1, $array2, fn($a, $b) => ($a['Firepack_sn'] ?? $a['firepack_id']) <=> ($b['Firepack_sn'] ?? $b['firepack_id']) ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'Firepack_sn' => '20012205', 'Installation_Date' => '', 'Type' => 'EH', 'Capacity_m3h' => '81', 'Pressure_bar' => '3,4', 'Rpm' => '2930', 'Power_kw' => '72', ), )

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