3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datetime = new DateTime('now'); $array = array( 'datetime' => $datetime ); echo json_encode($array);
Output for git.master
{"datetime":{"date":"2014-01-14 07:58:23.003558","timezone_type":3,"timezone":"Europe\/Amsterdam"}}
Output for git.master_jit
{"datetime":{"date":"2014-01-14 07:58:23.004017","timezone_type":3,"timezone":"Europe\/Amsterdam"}}
Output for rfc.property-hooks
{"datetime":{"date":"2014-01-14 07:58:23.004159","timezone_type":3,"timezone":"Europe\/Amsterdam"}}

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