3v4l.org

run code in 300+ PHP versions simultaneously
<?php $agent_name = 'aperry@clickspark.com'; $agent_name2 = 'crobinson'; echo strpos($agent_name2, 'n'); $agent_name = substr($agent_name, 0, strpos($agent_name, '@')); $agent_name2 = substr($agent_name2, 0, strpos($agent_name2, '@')); echo $agent_name.PHP_EOL.$agent_name2;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/71VaS
function name:  (null)
number of ops:  31
compiled vars:  !0 = $agent_name, !1 = $agent_name2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'aperry%40clickspark.com'
    4     1        ASSIGN                                                   !1, 'crobinson'
    6     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 'n'
          5        DO_ICALL                                         $4      
          6        ECHO                                                     $4
    8     7        INIT_FCALL                                               'substr'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 0
         10        INIT_FCALL                                               'strpos'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 '%40'
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                         $6      
         16        ASSIGN                                                   !0, $6
    9    17        INIT_FCALL                                               'substr'
         18        SEND_VAR                                                 !1
         19        SEND_VAL                                                 0
         20        INIT_FCALL                                               'strpos'
         21        SEND_VAR                                                 !1
         22        SEND_VAL                                                 '%40'
         23        DO_ICALL                                         $8      
         24        SEND_VAR                                                 $8
         25        DO_ICALL                                         $9      
         26        ASSIGN                                                   !1, $9
   11    27        CONCAT                                           ~11     !0, '%0A'
         28        CONCAT                                           ~12     ~11, !1
         29        ECHO                                                     ~12
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.56 ms | 1400 KiB | 17 Q