3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = iconv('UTF-8', 'ISO-8859-1', 'La Tronche Hôpital'); var_dump((new \DateTime())->sub(DateInterval::createFromDateString('54 days'))); die; $a = 0; $date = new \DateTime('2017-01-01'); $date2 = new \DateTime('2017-02-05'); $date3 = new \DateTime(); //var_dump($date->diff($date2)->format('%R%a days')); var_dump($date3->add(DateInterval::createFromDateString('36')));
Output for git.master
Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "ISO-8859-1" is not allowed in /in/qk2f9 on line 3 object(DateTime)#1 (3) { ["date"]=> string(26) "2017-05-04 22:15:51.003812" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for git.master_jit
Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "ISO-8859-1" is not allowed in /in/qk2f9 on line 3 object(DateTime)#1 (3) { ["date"]=> string(26) "2017-05-04 22:15:51.004502" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for rfc.property-hooks
Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "ISO-8859-1" is not allowed in /in/qk2f9 on line 3 object(DateTime)#1 (3) { ["date"]=> string(26) "2017-05-04 22:15:51.003673" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "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.44 ms | 401 KiB | 8 Q