3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "2012-05-18 usr abc removed device id=858 sn=abc cmmac=000 drumac=123"; $b = "2012-05-18 usr abc removed device id=858 sn=abc cmmac=000 drumac=12352015-03-26 usr mabdel001c removed device id=814 sn=abcd cmmac=1234 drumac=000"; Echo str_replace($a, "", $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KiZLN
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2012-05-18+usr+abc+removed+device+id%3D858+sn%3Dabc+cmmac%3D000+drumac%3D123'
    4     1        ASSIGN                                                   !1, '2012-05-18+usr+abc+removed+device+id%3D858+sn%3Dabc+cmmac%3D000+drumac%3D12352015-03-26+usr+mabdel001c+removed+device+id%3D814+sn%3Dabcd+cmmac%3D1234+drumac%3D000'
    6     2        INIT_FCALL                                               'str_replace'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        ECHO                                                     $4
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.07 ms | 1003 KiB | 14 Q