3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 123; $str = "some string with tt=789_ and more"; echo preg_replace("/tt=[0-9]+_\K/", $n, $str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GWmSI
function name:  (null)
number of ops:  9
compiled vars:  !0 = $n, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 123
    4     1        ASSIGN                                                   !1, 'some+string+with+tt%3D789_+and+more'
    5     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2Ftt%3D%5B0-9%5D%2B_%5CK%2F'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        ECHO                                                     $4
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.69 ms | 1008 KiB | 14 Q