3v4l.org

run code in 300+ PHP versions simultaneously
<?php use \Datetime; $lastMonth = new Datetime('-1 month'); print_r($lastMonth);
Output for git.master
Warning: The use statement with non-compound name 'Datetime' has no effect in /in/0DHh9 on line 3 DateTime Object ( [date] => 2015-09-27 16:20:14.003839 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for git.master_jit
Warning: The use statement with non-compound name 'Datetime' has no effect in /in/0DHh9 on line 3 DateTime Object ( [date] => 2015-09-27 16:20:14.004281 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for rfc.property-hooks
Warning: The use statement with non-compound name 'Datetime' has no effect in /in/0DHh9 on line 3 DateTime Object ( [date] => 2015-09-27 16:20:14.003657 [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:
60.98 ms | 401 KiB | 8 Q