3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'foo the moo moo cow not the moo cow is the cow the moo cow is the cow not the moo cow bar'; print $str; print preg_replace('/(\b.*\b)\1/', '', $str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bcJQZ
function name:  (null)
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'foo+the+moo+moo+cow+not+the+moo+cow+is+the+cow+the+moo+cow+is+the+cow+not+the+moo+cow+bar'
    3     1        ECHO                                                     !0
    4     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%28%5Cb.%2A%5Cb%29%5C1%2F'
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        ECHO                                                     $2
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.51 ms | 1385 KiB | 15 Q