3v4l.org

run code in 300+ PHP versions simultaneously
<?php $endpoint = array( "mac_address"=>"989096e255a1", "status" =>"Known", "attributes" => array( "Owner"=>"rogue@wpi.edu", "IPAM-Hostname"=>"dresden.wpi.edu", "IPAM-AdminState"=>"OK", "IPAM-NAS-IP-Address"=>"0", "IPAM-NAS-Port-ID"=>"1", "IPAM-RADIUS-VLAN"=>"true", "IPAM-TimeStamp"=>"2017-07-11 11:18:33 EDT", "Guest Role ID"=>"false", "MAC-Auth Expiry"=>"False", "Username"=>"", ), "Username"=>"", ); $endpointcreate = array_filter($endpoint, function($var) {return !empty($var);}); $endpointcreate["attributes"] = array_filter($endpointcreate["attributes"], function($var) {return !empty($var);}); print_r($filtered);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $filtered in /in/s0Tcq on line 25

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