3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format = 'd/m/Y'; foreach (range(1, 7) as $number) { $difference = strtotime('+' . $number . ' days'); $day = strtolower(date('N', $difference)); $$day = $difference; } $todayName = date('N'); $$todayName = date($format); var_dump($monday); var_dump($tuesday); var_dump($wednesday); var_dump($thursday); var_dump($friday); var_dump($saturday); var_dump($sunday);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $monday in /in/Rooll on line 15 NULL Warning: Undefined variable $tuesday in /in/Rooll on line 16 NULL Warning: Undefined variable $wednesday in /in/Rooll on line 17 NULL Warning: Undefined variable $thursday in /in/Rooll on line 18 NULL Warning: Undefined variable $friday in /in/Rooll on line 19 NULL Warning: Undefined variable $saturday in /in/Rooll on line 20 NULL Warning: Undefined variable $sunday in /in/Rooll on line 21 NULL

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:
54.82 ms | 402 KiB | 8 Q