3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = "Welcome to Lorien."; $search = "welcome"; echo str_ireplace($search, '<b>'.ucwords($search).'</b>', $string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gmsqp
function name:  (null)
number of ops:  14
compiled vars:  !0 = $string, !1 = $search
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'Welcome+to+Lorien.'
    4     1        ASSIGN                                                       !1, 'welcome'
    6     2        INIT_FCALL                                                   'str_ireplace'
          3        SEND_VAR                                                     !1
          4        INIT_FCALL                                                   'ucwords'
          5        SEND_VAR                                                     !1
          6        DO_ICALL                                             $4      
          7        CONCAT                                               ~5      '%3Cb%3E', $4
          8        CONCAT                                               ~6      ~5, '%3C%2Fb%3E'
          9        SEND_VAL                                                     ~6
         10        SEND_VAR                                                     !0
         11        DO_ICALL                                             $7      
         12        ECHO                                                         $7
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.85 ms | 2103 KiB | 15 Q