3v4l.org

run code in 500+ PHP versions simultaneously
<?php function rfid($txtarea){ return array_unique(explode("\r\n", $txtarea)); } print_r(rfid("test1\r\ntest2\r\ntest1"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DY8Ts
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'print_r'
          1        INIT_FCALL                                                   'rfid'
          2        SEND_VAL                                                     'test1%0D%0Atest2%0D%0Atest1'
          3        DO_FCALL                                          0  $0      
          4        SEND_VAR                                                     $0
          5        DO_ICALL                                                     
          6      > RETURN                                                       1

Function rfid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DY8Ts
function name:  rfid
number of ops:  10
compiled vars:  !0 = $txtarea
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        INIT_FCALL                                                   'array_unique'
          2        INIT_FCALL                                                   'explode'
          3        SEND_VAL                                                     '%0D%0A'
          4        SEND_VAR                                                     !0
          5        DO_ICALL                                             $1      
          6        SEND_VAR                                                     $1
          7        DO_ICALL                                             $2      
          8      > RETURN                                                       $2
    5     9*     > RETURN                                                       null

End of function rfid

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
209.32 ms | 2229 KiB | 17 Q