3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Считалка на основе слогов */ error_reporting(-1); mb_internal_encoding('UTF-8'); $total = 30; $skip = 5; $players = range(0, $total); unset($players[0]); $counter = 0; do { foreach ($players as $key => $player) { $counter++; if ($counter == $skip) { unset($players[$key]); $counter = NULL; } } } while (count($players) >= $skip); echo "Чай с тортиком будут пить игроки под номерами: ". implode($players, ', ');
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /in/vjliq:25 Stack trace: #0 /in/vjliq(25): implode(Array, ', ') #1 {main} thrown in /in/vjliq on line 25
Process exited with code 255.

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:
31.11 ms | 405 KiB | 5 Q