3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [0 => array('name' => 'coco', 'created_at' => array('sec' => 1444339210, 'usec' => 23000))]; //var_dump($arr); // $time = strtotime('01/07/2015'); $filter = array_filter($arr, function($arr){ return $arr['created_at']['sec'] > 1444339200 && $arr['created_at']['sec'] < 1444339220; }); var_dump($filter); // echo $time;
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { [0]=> array(2) { ["name"]=> string(4) "coco" ["created_at"]=> array(2) { ["sec"]=> int(1444339210) ["usec"]=> int(23000) } } }

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:
19.41 ms | 405 KiB | 9 Q