3v4l.org

run code in 300+ PHP versions simultaneously
<?php $begin = new DateTime('2020-12-01'); $end = new DateTime('2021-01-01'); $interval = new DateInterval('P1D'); $daterange = new DatePeriod($begin, $interval ,$end); $array = array(); foreach($daterange as $date){ if ($date->format('N') < 6) { $array[] = $date->format("D Y-m-d"); } } print_r($array);
Output for git.master, git.master_jit
/bin/php-git-master: error while loading shared libraries: libonig.so.5: cannot open shared object file: No such file or directory
Process exited with code 127.
Output for rfc.property-hooks
Array ( [0] => Tue 2020-12-01 [1] => Wed 2020-12-02 [2] => Thu 2020-12-03 [3] => Fri 2020-12-04 [4] => Mon 2020-12-07 [5] => Tue 2020-12-08 [6] => Wed 2020-12-09 [7] => Thu 2020-12-10 [8] => Fri 2020-12-11 [9] => Mon 2020-12-14 [10] => Tue 2020-12-15 [11] => Wed 2020-12-16 [12] => Thu 2020-12-17 [13] => Fri 2020-12-18 [14] => Mon 2020-12-21 [15] => Tue 2020-12-22 [16] => Wed 2020-12-23 [17] => Thu 2020-12-24 [18] => Fri 2020-12-25 [19] => Mon 2020-12-28 [20] => Tue 2020-12-29 [21] => Wed 2020-12-30 [22] => Thu 2020-12-31 )

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:
94.04 ms | 408 KiB | 5 Q