3v4l.org

run code in 300+ 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.0.0


preferences:
148.88 ms | 1010 KiB | 15 Q