3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Chicago41Illinos9'; var_export( preg_replace_callback( '/\d+$/', fn($m) => ++$m[0], $string ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gkGfG
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Chicago41Illinos9'
    5     1        INIT_FCALL                                               'var_export'
    6     2        INIT_FCALL                                               'preg_replace_callback'
    7     3        SEND_VAL                                                 '%2F%5Cd%2B%24%2F'
    8     4        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
          5        SEND_VAL                                                 ~2
    9     6        SEND_VAR                                                 !0
    6     7        DO_ICALL                                         $3      
    9     8        SEND_VAR                                                 $3
    5     9        DO_ICALL                                                 
   11    10      > 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/gkGfG
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        FETCH_DIM_RW                                     $1      !0, 0
          2        PRE_INC                                          ~2      $1
          3      > RETURN                                                   ~2
          4*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.81 ms | 998 KiB | 15 Q