3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); $a = "abcdefffefa"; $b = "afe"; print(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/QJCFf
function name:  (null)
number of ops:  27
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                                               'array_unique'
          6        INIT_FCALL                                               'explode'
          7        SEND_VAL                                                 ''
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                         $6      
         12        ECHO                                                     $6
    8    13        INIT_FCALL                                               'str_replace'
         14        INIT_FCALL                                               'array_unique'
         15        INIT_FCALL                                               'explode'
         16        SEND_VAL                                                 ''
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $7      
         19        SEND_VAR                                                 $7
         20        DO_ICALL                                         $8      
         21        SEND_VAR                                                 $8
         22        SEND_VAL                                                 ''
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $9      
         25        ECHO                                                     $9
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.46 ms | 1395 KiB | 21 Q