3v4l.org

run code in 300+ PHP versions simultaneously
<?php $files = [ 'BBBOF1_0090_A.jpg', 'BBBOF1_0090_B.jpg', 'BBBOF1_0090_C.jpg', 'BBDOTR_0070_A.jpg', 'BBDOTR_0070_B.jpg' ]; $replacers = [ array_map(fn($v) => '_'.$v, range('A', 'Z')), array_map(fn($v) => '_'.$v, range(1, 26)) ]; foreach ($files as $file) { echo 'K'.str_replace($replacers[0], $replacers[1], $file).PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
KBBBOF1_0090_1.jpg KBBBOF1_0090_2.jpg KBBBOF1_0090_3.jpg KBBDOTR_0070_1.jpg KBBDOTR_0070_2.jpg

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:
58.71 ms | 1404 KiB | 4 Q