3v4l.org

run code in 300+ PHP versions simultaneously
<?php $change = 1453404531; $then = new DateTime("@$change"); var_dump($then->format('Y-m-d H:i:s e')); $now = new DateTime(); $interval = date_diff($now, $then); echo $then; echo $now; echo $interval;
Output for git.master, git.master_jit, rfc.property-hooks
string(26) "2016-01-21 19:28:51 +00:00" Fatal error: Uncaught Error: Object of class DateTime could not be converted to string in /in/mWRJ1:9 Stack trace: #0 {main} thrown in /in/mWRJ1 on line 9
Process exited with code 255.

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.88 ms | 401 KiB | 8 Q