3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contacts = [["createdAt"=>'2020-01-29T17:00:04.159+01:00']]; foreach ($contacts as &$contact) { $time = new DateTime($contact['createdAt']); $contact['createdAt'] = $time->format('Y-m-d'); } print_r($contacts);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [createdAt] => 2020-01-29 ) )

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:
48.78 ms | 1469 KiB | 4 Q