3v4l.org

run code in 300+ PHP versions simultaneously
<?php $agent_name = 'aperry@clickspark.com'; $agent_name2 = 'crobinson'; $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/T9C5c
function name:  (null)
number of ops:  26
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                                               'substr'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        INIT_FCALL                                               'strpos'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 '%40'
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !0, $5
    7    12        INIT_FCALL                                               'substr'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 0
         15        INIT_FCALL                                               'strpos'
         16        SEND_VAR                                                 !1
         17        SEND_VAL                                                 '%40'
         18        DO_ICALL                                         $7      
         19        SEND_VAR                                                 $7
         20        DO_ICALL                                         $8      
         21        ASSIGN                                                   !1, $8
    9    22        CONCAT                                           ~10     !0, '%0A'
         23        CONCAT                                           ~11     ~10, !1
         24        ECHO                                                     ~11
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.34 ms | 1399 KiB | 17 Q