3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "222\t55555\t9\thello\tbyebye\t444"; $newInt = 2; var_export( preg_replace("/\t[^\t]+\t\K\d+/", $newInt, $string, 1) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eOl9c
function name:  (null)
number of ops:  12
compiled vars:  !0 = $string, !1 = $newInt
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '222%0955555%099%09hello%09byebye%09444'
    4     1        ASSIGN                                                       !1, 2
    5     2        INIT_FCALL                                                   'var_export'
    6     3        INIT_FCALL                                                   'preg_replace'
          4        SEND_VAL                                                     '%2F%09%5B%5E%09%5D%2B%09%5CK%5Cd%2B%2F'
          5        SEND_VAR                                                     !1
          6        SEND_VAR                                                     !0
          7        SEND_VAL                                                     1
          8        DO_ICALL                                             $4      
          9        SEND_VAR                                                     $4
    5    10        DO_ICALL                                                     
    7    11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
145.71 ms | 1882 KiB | 15 Q