3v4l.org

run code in 300+ PHP versions simultaneously
<?php $StringToReplace = array("\"","'"); $text = "Plagiarism is the \"wrongful appropriation\" and \"stealing and publication\" of another author's \"language\""; foreach($StringToReplace as $String){ $text = str_replace($String,"",$text); } echo "<pre>$text</pre>"; $text = "Plagiarism is the \"wrongful appropriation\" and \"stealing and publication\" of another author's \"language"; echo str_replace( array( "'",'"' ),'',$text);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/mcrXu
function name:  (null)
number of ops:  24
compiled vars:  !0 = $StringToReplace, !1 = $text, !2 = $String
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 'Plagiarism+is+the+%22wrongful+appropriation%22+and+%22stealing+and+publication%22+of+another+author%27s+%22language%22'
    4     2      > FE_RESET_R                                       $5      !0, ->11
          3    > > FE_FETCH_R                                               $5, !2, ->11
    5     4    >   INIT_FCALL                                               'str_replace'
          5        SEND_VAR                                                 !2
          6        SEND_VAL                                                 ''
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
    4    10      > JMP                                                      ->3
         11    >   FE_FREE                                                  $5
    7    12        ROPE_INIT                                     3  ~9      '%3Cpre%3E'
         13        ROPE_ADD                                      1  ~9      ~9, !1
         14        ROPE_END                                      2  ~8      ~9, '%3C%2Fpre%3E'
         15        ECHO                                                     ~8
    9    16        ASSIGN                                                   !1, 'Plagiarism+is+the+%22wrongful+appropriation%22+and+%22stealing+and+publication%22+of+another+author%27s+%22language'
   10    17        INIT_FCALL                                               'str_replace'
         18        SEND_VAL                                                 <array>
         19        SEND_VAL                                                 ''
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $12     
         22        ECHO                                                     $12
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.78 ms | 1395 KiB | 15 Q