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/AK2XI on line 3 DateTime Object ( [date] => 2015-11-02 22:08:22.003537 [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/AK2XI on line 3 DateTime Object ( [date] => 2015-11-02 22:08:22.003776 [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/AK2XI on line 3 DateTime Object ( [date] => 2015-11-02 22:08:22.004248 [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:
41.07 ms | 401 KiB | 8 Q