3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "sdfsdf.sdfsdf.sdfsdf.fds.fd.sd@sdf.com"; $pos = explode("@",$tring); echo preg_replace( "/^\.+|\.+$/", "", $pos);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hadcW
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string, !1 = $pos, !2 = $tring
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'sdfsdf.sdfsdf.sdfsdf.fds.fd.sd%40sdf.com'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%40'
          3        SEND_VAR                                                 !2
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        INIT_FCALL                                               'preg_replace'
          7        SEND_VAL                                                 '%2F%5E%5C.%2B%7C%5C.%2B%24%2F'
          8        SEND_VAL                                                 ''
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        ECHO                                                     $6
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.24 ms | 1394 KiB | 17 Q