3v4l.org

run code in 300+ PHP versions simultaneously
<?php $searchReplaceArray = array( '&#038;' => '&', ); $string = "Hello &#038; Goodbye"; $result = str_replace( array_keys($searchReplaceArray), array_values($searchReplaceArray), $string ); echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iZ3S7
function name:  (null)
number of ops:  16
compiled vars:  !0 = $searchReplaceArray, !1 = $string, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, 'Hello+%26%23038%3B+Goodbye'
   10     2        INIT_FCALL                                               'str_replace'
          3        INIT_FCALL                                               'array_keys'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        SEND_VAR                                                 $5
          7        INIT_FCALL                                               'array_values'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10        SEND_VAR                                                 $6
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !2, $7
   12    14        ECHO                                                     !2
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.46 ms | 1394 KiB | 19 Q