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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MGEBO
function name:  (null)
number of ops:  9
compiled vars:  !0 = $formula
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'IF%28B15%3D%22%22%2C%22%22%2CIF%28ISNUMBER%28A14%29%2CA14%2B1%2CIF%28ISNUMBER%28B3%29%2CB3%2B1%2C1%29%29%29'
    3     1        INIT_FCALL                                               'preg_replace_callback'
          2        SEND_VAL                                                 '%2F%5Cb%28%5BA-Z%5D%29%28%5Cd%2B%29%5Cb%2F'
          3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
    5     4        SEND_VAL                                                 ~2
          5        SEND_VAR                                                 !0
    3     6        DO_ICALL                                         $3      
    5     7        ECHO                                                     $3
          8      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MGEBO
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        FETCH_DIM_R                                      ~1      !0, 1
          2        FETCH_DIM_R                                      ~2      !0, 2
          3        ADD                                              ~3      1, ~2
          4        CONCAT                                           ~4      ~1, ~3
          5      > RETURN                                                   ~4
    5     6*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.23 ms | 1436 KiB | 14 Q