3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_string = "newtext!234@@random_text@@weludud"; $new_text = 'replaced_text'; $var = explode('@@',$my_string); //create an array with 3 parts, the middle one being the text to be replaced $var[1]=$new_text; $my_string=implode('@@',$var); echo $my_string; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3gYH2
function name:  (null)
number of ops:  16
compiled vars:  !0 = $my_string, !1 = $new_text, !2 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'newtext%21234%40%40random_text%40%40weludud'
    3     1        ASSIGN                                                   !1, 'replaced_text'
    4     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%40%40'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    6     7        ASSIGN_DIM                                               !2, 1
          8        OP_DATA                                                  !1
    8     9        INIT_FCALL                                               'implode'
         10        SEND_VAL                                                 '%40%40'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !0, $8
    9    14        ECHO                                                     !0
   10    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.45 ms | 1398 KiB | 17 Q