3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = "this is a text"; $str2 = "this is a text which is edited"; echo $Diff = str_replace($str1, "", $str2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3AjuI
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str1, !1 = $str2, !2 = $Diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'this+is%0A+++++++++a+text'
    6     1        ASSIGN                                                   !1, 'this+is+a+text%0A+++++++++which+is+edited'
    9     2        INIT_FCALL                                               'str_replace'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $5      
          7        ASSIGN                                           ~6      !2, $5
          8        ECHO                                                     ~6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.09 ms | 996 KiB | 14 Q