3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<STR THEDLSDARNVNS CCVBXXMTGFRWS CVIYTVBVSDOPTR VBNMAITYSURFD MOTYYERSAWERTY MOITRUHDYRTBDI VNOWUNMBORN STR; $fib = [1,2,3,5,8,13]; foreach (explode(PHP_EOL, $str) as $line) { // hack to make the array 1-based $arr = str_split($line); array_unshift($arr, 'foo'); unset($arr[0]); $arr = array_filter($arr); foreach ($arr as $pos => $c) { // start at if ($pos > 9) { $index = $pos % 9; } else { $index = $pos; } // if in $fib array if (in_array($index, $fib)) { echo $c; } } }
Output for git.master, git.master_jit, rfc.property-hooks
THELANVN CCVXTFRW CVITVDOPRVBNAYURF MOTYSWERYMOIRDRTBIVNOUBRN

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