3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "ignac8e+to:to@example.com"; list($login, $domain) = explode("@", $str); echo preg_replace("[\W|_]", "", $login);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0KTBq
function name:  (null)
number of ops:  17
compiled vars:  !0 = $str, !1 = $login, !2 = $domain
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ignac8e%2Bto%3Ato%40example.com'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%40'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        FETCH_LIST_R                                     $5      $4, 0
          6        ASSIGN                                                   !1, $5
          7        FETCH_LIST_R                                     $7      $4, 1
          8        ASSIGN                                                   !2, $7
          9        FREE                                                     $4
    5    10        INIT_FCALL                                               'preg_replace'
         11        SEND_VAL                                                 '%5B%5CW%7C_%5D'
         12        SEND_VAL                                                 ''
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $9      
         15        ECHO                                                     $9
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.93 ms | 1394 KiB | 17 Q