3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrays = [ [ "name" => "Morning Ride", "distance" => "1723.3", "type" => "Ride", "id" => "2011096935", ], [ "name" => "Evening Walk", "distance" => "3165.5", "type" => "Walk", "id" => "2008414015", ], [ "name" => "Morning walk", "distance" => "2262.9", "type" => "Walk", "id" => "1963423515", ], [ "name" => "Evening Runining", "distance" => "531.2", "type" => "Run", "id" => "1951087309", ] ]; $res = array_filter($arrays, function($x) { return $x["type"] == "Walk"; }); print_r($res);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [1] => Array ( [name] => Evening Walk [distance] => 3165.5 [type] => Walk [id] => 2008414015 ) [2] => Array ( [name] => Morning walk [distance] => 2262.9 [type] => Walk [id] => 1963423515 ) )

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