3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace_callback('/.(.)/s', function($m){ return chr(mt_rand(48, 57)) . $m[1]; }, '123456');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8dDmL
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace_callback'
          1        SEND_VAL                                                 '%2F.%28.%29%2Fs'
          2        DECLARE_LAMBDA_FUNCTION                          ~0      [0]
    5     3        SEND_VAL                                                 ~0
          4        SEND_VAL                                                 '123456'
    3     5        DO_ICALL                                         $1      
    5     6        ECHO                                                     $1
          7      > 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/8dDmL
function name:  {closure}
number of ops:  12
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'chr'
          2        INIT_FCALL                                               'mt_rand'
          3        SEND_VAL                                                 48
          4        SEND_VAL                                                 57
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                         $2      
          8        FETCH_DIM_R                                      ~3      !0, 1
          9        CONCAT                                           ~4      $2, ~3
         10      > RETURN                                                   ~4
    5    11*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.31 ms | 1012 KiB | 16 Q