3v4l.org

run code in 300+ PHP versions simultaneously
<?php $find = array( "0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f" ); $replace = array( "a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p" ); $find = array_flip($find); echo preg_replace_callback('/[a-f0-9]/', function ($v) use($replace, $find) { return $replace[$find[$v[0]]]; }, $haystack); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $haystack in /in/mTNma on line 9 Deprecated: preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /in/mTNma 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:
40.99 ms | 405 KiB | 9 Q