3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); $a = "abcdefffefa"; $b = "afe"; print_r(array_unique(explode('', $b))); print(str_replace(array_unique(explode('', $b)), "", $a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jM8tI
function name:  (null)
number of ops:  29
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, 'abcdefffefa'
    6     4        ASSIGN                                                   !1, 'afe'
    7     5        INIT_FCALL                                               'print_r'
          6        INIT_FCALL                                               'array_unique'
          7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 ''
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                                 
    8    15        INIT_FCALL                                               'str_replace'
         16        INIT_FCALL                                               'array_unique'
         17        INIT_FCALL                                               'explode'
         18        SEND_VAL                                                 ''
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $8      
         21        SEND_VAR                                                 $8
         22        DO_ICALL                                         $9      
         23        SEND_VAR                                                 $9
         24        SEND_VAL                                                 ''
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $10     
         27        ECHO                                                     $10
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.68 ms | 1395 KiB | 23 Q