3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allowed = array('outbound_status_id', 'billing_status_id', 'date_released'); print_r(array_flip($allowed)); $cleanValues = array('gross'=>1, 'tare'=>2, 'outbound_status_id'=>3, 'driver_name'=>'bob', 'quantity'=>'awesome'); print_r(array_intersect($cleanValues, array_flip($allowed))); print_r(array_intersect_assoc($cleanValues, array_flip($allowed))); print_r(array_diff($cleanValues, array_flip($allowed)));
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [outbound_status_id] => 0 [billing_status_id] => 1 [date_released] => 2 ) Array ( [gross] => 1 [tare] => 2 ) Array ( ) Array ( [outbound_status_id] => 3 [driver_name] => bob [quantity] => awesome )

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:
38.55 ms | 401 KiB | 8 Q