3v4l.org

run code in 300+ PHP versions simultaneously
<?php $starttime = ['month' => 5, 'day' => 10, 'minute' => 15]; $date = new \DateTime(); $date->setDate($starttime['year'] ?? $date->format('Y'), $starttime['month'] ?? $date->format('m'), $starttime['day'] ?? $date->format('d')); $date->setTime($starttime['hour'] ?? $date->format('H'), $starttime['minute'] ?? $date->format('i')); var_dump($timestamp = $date->getTimestamp()); var_dump(date('Y-m-d H:i:s', $timestamp));
Output for git.master, git.master_jit, rfc.property-hooks
int(1557497700) string(19) "2019-05-10 16:15:00"

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:
61.8 ms | 401 KiB | 8 Q