3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "Welcome to Lorien."; $search = "welcome"; $result = preg_replace("/{$search}/i", '<b>$0</b>', $string); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vN9Km
function name:  (null)
number of ops:  12
compiled vars:  !0 = $string, !1 = $search, !2 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Welcome+to+Lorien.'
    4     1        ASSIGN                                                       !1, 'welcome'
    6     2        ROPE_INIT                                         3  ~6      '%2F'
          3        ROPE_ADD                                          1  ~6      ~6, !1
          4        ROPE_END                                          2  ~5      ~6, '%2Fi'
          5        FRAMELESS_ICALL_3                preg_replace        ~8      ~5, '%3Cb%3E%240%3C%2Fb%3E'
          6        OP_DATA                                                      !0
          7        ASSIGN                                                       !2, ~8
    8     8        INIT_FCALL                                                   'print_r'
          9        SEND_VAR                                                     !2
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.96 ms | 2102 KiB | 14 Q