3v4l.org

run code in 300+ PHP versions simultaneously
<?php $htm = "Dear User, Thanks for register in our site. We will contact you shortly. Regards, #COMPANY_NAME# #SITE_URL#"; $findarray = array("#COMPANY_NAME#","#SITE_URL#"); $replacearray = array(fsdaf,fasdfsd); echo $vBody = str_replace($findarray, $replacearray, $htm);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5DYhh
function name:  (null)
number of ops:  15
compiled vars:  !0 = $htm, !1 = $findarray, !2 = $replacearray, !3 = $vBody
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Dear+User%2C%0A%0AThanks+for+register+in+our+site.%0A%0AWe+will+contact+you+shortly.%0A%0A+%0A%0ARegards%2C%0A%23COMPANY_NAME%23%0A%23SITE_URL%23'
   15     1        ASSIGN                                                   !1, <array>
   16     2        FETCH_CONSTANT                                   ~6      'fsdaf'
          3        INIT_ARRAY                                       ~7      ~6
          4        FETCH_CONSTANT                                   ~8      'fasdfsd'
          5        ADD_ARRAY_ELEMENT                                ~7      ~8
          6        ASSIGN                                                   !2, ~7
   17     7        INIT_FCALL                                               'str_replace'
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !2
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $10     
         12        ASSIGN                                           ~11     !3, $10
         13        ECHO                                                     ~11
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.28 ms | 1394 KiB | 15 Q