3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = 'name@example.com'; $domain = strstr($email, '@'); echo $domain; // prints @example.com $user = strstr($email, '@', true); // As of PHP 5.3.0 echo $user; // prints name
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9StPr
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, 'name%40example.com'
    4     1        INIT_FCALL                                               'strstr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%40'
          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:
161.8 ms | 1394 KiB | 15 Q