3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keywords = ['test', 'value']; $replace = ['<span>test</span>', '<span>value</span>']; $string = 'Hello world. This is a test.'; $render = str_replace($keywords, $replace, $string); echo $render;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LR0Wi
function name:  (null)
number of ops:  11
compiled vars:  !0 = $keywords, !1 = $replace, !2 = $string, !3 = $render
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, 'Hello+world.+This+is+a+test.'
    8     3        INIT_FCALL                                               'str_replace'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !3, $7
   10     9        ECHO                                                     !3
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
340.22 ms | 1398 KiB | 16 Q