3v4l.org

run code in 500+ PHP versions simultaneously
<?php class MyDateTime extends DateTime { public function modify(string $modifier) { return false; } }
Output for git.master, git.master_jit
Deprecated: Return type of MyDateTime::modify(string $modifier) should either be compatible with DateTime::modify(string $modifier): DateTime, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/5WH2c on line 5
Output for rfc.property-hooks
Deprecated: Return type of MyDateTime::modify(string $modifier) should either be compatible with DateTime::modify(string $modifier): DateTime|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/5WH2c on line 5

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.37 ms | 1415 KiB | 4 Q