3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dados['data_pgto'] = '2018-01-01'; $proximo_pagto = new DateTime($dados['data_pgto']); $proximo_pagto->add(new DateInterval('P180D')); echo $proximo_pagto->format('d/m/Y').PHP_EOL; $proximo_pagto = strtotime($dados['data_pgto'] . ' +180 days'); echo date('d/m/Y', $proximo_pagto);
Output for git.master, git.master_jit, rfc.property-hooks
30/06/2018 30/06/2018

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:
28.19 ms | 405 KiB | 5 Q