3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<>!$'; $string = str_replace('<', 'a', $string); $string = str_replace('>', 'b', $string); $string = str_replace('!', 'c', $string); $string = str_replace('$', 'd', $string); echo $string; // abcd
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MfvKt
function name:  (null)
number of ops:  27
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%3E%21%24'
    4     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%3C'
          3        SEND_VAL                                                 'a'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    5     7        INIT_FCALL                                               'str_replace'
          8        SEND_VAL                                                 '%3E'
          9        SEND_VAL                                                 'b'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
    6    13        INIT_FCALL                                               'str_replace'
         14        SEND_VAL                                                 '%21'
         15        SEND_VAL                                                 'c'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $6      
         18        ASSIGN                                                   !0, $6
    7    19        INIT_FCALL                                               'str_replace'
         20        SEND_VAL                                                 '%24'
         21        SEND_VAL                                                 'd'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $8      
         24        ASSIGN                                                   !0, $8
    9    25        ECHO                                                     !0
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.45 ms | 1387 KiB | 15 Q