3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = '2011-12-17 09:30:56'; var_dump( (fn($obj) => [ $obj->format('Y'), $obj->format('m'), $obj->format('d'), $obj->format('H'), $obj->format('i'), $obj->format('s') ])(date_create($dt)) );
Output for git.master_jit, git.master, rfc.property-hooks
array(6) { [0]=> string(4) "2011" [1]=> string(2) "12" [2]=> string(2) "17" [3]=> string(2) "09" [4]=> string(2) "30" [5]=> string(2) "56" }

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:
50.17 ms | 405 KiB | 5 Q