3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 1; $i <= 31; $i++) { if ($i < 10){ $day = '0'.$i; if( ($i+1) < 10 ) $next_day = '0'.($i+1); else $next_day=$i; } else{ $day = $i; $next_day = ($i+1); } echo "$day $next_day".PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
01 02 02 03 03 04 04 05 05 06 06 07 07 08 08 09 09 9 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32

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:
39.81 ms | 401 KiB | 8 Q