3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '1-string-2-string-3-string-55-otherstring-66-otherstring'; print_r(implode('-', array_reverse(array_unique(array_reverse(explode('-', $str))))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MvAnl
function name:  (null)
number of ops:  22
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1-string-2-string-3-string-55-otherstring-66-otherstring'
    4     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '-'
          4        INIT_FCALL                                               'array_reverse'
          5        INIT_FCALL                                               'array_unique'
          6        INIT_FCALL                                               'array_reverse'
          7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '-'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $2      
         11        SEND_VAR                                                 $2
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        DO_ICALL                                         $5      
         17        SEND_VAR                                                 $5
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.42 ms | 1004 KiB | 18 Q