3v4l.org

run code in 300+ PHP versions simultaneously
<?php $r = 5; $f = 'somethingdumb'; function csc($c, $a) { if ($a < 0) { return csc($c, $a + 26); } $cd = ord($c); if (($cd >= 65) && ($cd <= 90)) { $c = chr((($cd - 65 + $a) % 26) + 65); } if (($cd >= 97) && ($cd <= 122)) { $c = chr((($cd - 97 + $a) % 26) + 97); } return $c; }; function crs($f) { global $r; $a = str_split($f); $cd = ""; for ($i=0; $i<count($a); $i++) { echo (($i+1) * $r). " | "; $cd .= csc($a[$i], ($i+1) * $r); } echo "\n"; return $cd; } function rcs($f, $a) { $ar = str_split($f); $cd = ""; for ($i=0; $i<count($a); $i++) { echo (($i+1) * $a). " | "; $cd .= csc($ar[$i], ($i+1) * $r); } return $cd; } var_dump(crs($f)); var_dump($r); var_dump(rcs($f, abs($r)));
Output for git.master_jit, git.master, rfc.property-hooks
5 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | string(13) "xybyslrbzbxuo" int(5) Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, int given in /in/j3VJA:37 Stack trace: #0 /in/j3VJA(46): rcs('somethingdumb', 5) #1 {main} thrown in /in/j3VJA on line 37
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:
61.14 ms | 401 KiB | 8 Q