3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bad = array('google.com', 'orange', 'satisfied'); $replace = array('[redacted URL]', 'an unspecified color', 'content'); $text = 'If you search google.com for orange, you will be satisfied with the answer.'; echo str_replace($bad, $replace, $text);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UdbEv
function name:  (null)
number of ops:  10
compiled vars:  !0 = $bad, !1 = $replace, !2 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, 'If+you+search+google.com+for+orange%2C+you+will+be+satisfied+with+the+answer.'
    7     3        INIT_FCALL                                               'str_replace'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $6      
          8        ECHO                                                     $6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.09 ms | 1394 KiB | 15 Q