3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = "404:Not Found(CLIENT_ERROR):Product with ref '47493470' does not exist"; $domain = strstr($email, "404:Not Found(CLIENT_ERROR):Product with ref "); echo $domain; // Affiche : @example.com $user = strstr($email, '@', true); // Depuis PHP 5.3.0 echo $user; // Affiche : name
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A7QiR
function name:  (null)
number of ops:  15
compiled vars:  !0 = $email, !1 = $domain, !2 = $user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '404%3ANot+Found%28CLIENT_ERROR%29%3AProduct+with+ref+%2747493470%27+does+not+exist'
    4     1        INIT_FCALL                                               'strstr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '404%3ANot+Found%28CLIENT_ERROR%29%3AProduct+with+ref+'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        ECHO                                                     !1
    7     7        INIT_FCALL                                               'strstr'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 '%40'
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !2, $6
    8    13        ECHO                                                     !2
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.39 ms | 1385 KiB | 15 Q