3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ [ 'type' => 'comment', "line_index" => 0, "text_b64" => "OyBjUGFuZWwgZmlyc3Q6ODguMC4xMiAodXBkYXRlX3RpbWUpOjE2MTg1NDYxNDIgQ3BhbmVsOjpab25lRmlsZTo6VkVSU0lPTjoxLjMgaG9zdG5hbWU6cjExOC5sb24yLm15c2VjdXJlY2xvdWRob3N0LmNvbSBs", ], [ "line_index" => 1, "text_b64" => "OyBab25lIGZpbGUgZm9yIG9ha3RyZWVkZW50YWxtb3J0aW1lci5jby51aw==", "type" => "comment", ], [ "text_b64" => "JFRUTCAxNDQwMA==", "line_index" => 2, "type" => "control", ], [ "line_index" => 3, "dname_b64" => "b2FrdHJlZWRlbnRhbG1vcnRpbWVyLmNvLnVrLg==", "record_type" => "SOA", "ttl" => 30, "type" => "record", "data_b64" => [], ], [ "dname_b64" => "b2FrdHJlZWRlbnRhbG1vcnRpbWVyLmNvLnVrLg==", "line_index" => 10, "record_type" => "NS", "ttl" => 30, "type" => "record", "data_b64" => [], ], [ "ttl" => 30, "dname_b64" => "b2FrdHJlZWRlbnRhbG1vcnRpbWVyLmNvLnVrLg==", "line_index" => 11, "record_type" => "NS", "data_b64" => [], "type" => "record", ], ]; $result = array_filter( $arr, function (array $record) { if (isset($record['record_type'])) { return $record['record_type'] != "NS"; } return null; } ); print_r($result);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [3] => Array ( [line_index] => 3 [dname_b64] => b2FrdHJlZWRlbnRhbG1vcnRpbWVyLmNvLnVrLg== [record_type] => SOA [ttl] => 30 [type] => record [data_b64] => Array ( ) ) )

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:
56.18 ms | 1445 KiB | 4 Q