3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "All 3 should show the fractions of second:\n"; echo var_dump((new \DateTime())->format('Y-m-d\TH:i:s.u')); echo var_dump((new \IntlDateFormatter( 'en-US', \IntlDateFormatter::FULL, \IntlDateFormatter::FULL, 'UTC', \IntlDateFormatter::GREGORIAN, 'yyyy-MM-dd HH:mm:ss.SSSSSS' ))->format(new \DateTime())); echo var_dump(datefmt_create( 'en-US', \IntlDateFormatter::FULL, \IntlDateFormatter::FULL, 'UTC', \IntlDateFormatter::GREGORIAN, 'yyyy-MM-dd HH:mm:ss.SSSSSS' )->format(new \DateTime()));
Output for git.master
All 3 should show the fractions of second: string(26) "2017-04-17T09:22:03.003507" string(26) "2017-04-17 07:22:03.004000" string(26) "2017-04-17 07:22:03.004000"
Output for git.master_jit
All 3 should show the fractions of second: string(26) "2017-04-17T09:22:03.003829" string(26) "2017-04-17 07:22:03.004000" string(26) "2017-04-17 07:22:03.004000"
Output for rfc.property-hooks
All 3 should show the fractions of second: string(26) "2017-04-17T09:22:03.004051" string(26) "2017-04-17 07:22:03.004000" string(26) "2017-04-17 07:22:03.004000"

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