3v4l.org

run code in 300+ PHP versions simultaneously
<?php function encode($str) { return preg_replace('/(.)\1*/e', 'strlen($0) . $1', $str); } function decode($str) { return preg_replace('/(\d+)(\D)/e', 'str_repeat($2, $1)', $str); } echo encode('WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW'), "\n"; echo decode('12W1B12W3B24W1B14W'), "\n";
Output for git.master, git.master_jit, rfc.property-hooks
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/IPK0D on line 3 Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/IPK0D on line 7

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