3v4l.org

run code in 300+ PHP versions simultaneously
<?php $skus = array('55A_3', '345W_1+04B_1', '128T_2+167T_2+113T_8+115T_8', '55A'); foreach ($skus as &$sku) { $sku = preg_replace('/(\d+)([A-Z]+)(?=_\d+|\+|$)/', '$2$1', $sku); } print_r($skus);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => A55_3 [1] => W345_1+B04_1 [2] => T128_2+T167_2+T113_8+T115_8 [3] => A55 )

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