3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formula = 'IF(B15="","",IF(ISNUMBER(A14),A14+1,IF(ISNUMBER(B3),B3+1,1)))'; echo preg_replace_callback('/\b([A-Z])(\d+)\b/', function ($m) { return $m[1] . (1 + $m[2]); }, $formula);
Output for 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.25, 8.3.0 - 8.3.13
IF(B16="","",IF(ISNUMBER(A15),A15+1,IF(ISNUMBER(B4),B4+1,1)))

preferences:
69.5 ms | 407 KiB | 5 Q