3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(array('Holidays' => new DateTime('2018-01-01', new DateTimeZone('Europe/Berlin'))), array('Holidays' => new DateTime('2018-01-26', new DateTimeZone('Australia/Sydney')))); print_r($a); $a = array_map(function ($v) { return $v['Holidays']->format('Y-m-d'); }, $a); print_r($a);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [Holidays] => DateTime Object ( [date] => 2018-01-01 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Berlin ) ) [1] => Array ( [Holidays] => DateTime Object ( [date] => 2018-01-26 00:00:00.000000 [timezone_type] => 3 [timezone] => Australia/Sydney ) ) ) Array ( [0] => 2018-01-01 [1] => 2018-01-26 )

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:
134.8 ms | 407 KiB | 5 Q