3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = "h@hotmail.com"; $em = explode("@", $email); $name = $em[0]; echo ((strlen($name) > 3) ? substr($name, 0, 3) : "") . "@$em[1]";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/utaQW
function name:  (null)
number of ops:  25
compiled vars:  !0 = $email, !1 = $em, !2 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'h%40hotmail.com'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%40'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    6     6        FETCH_DIM_R                                      ~6      !1, 0
          7        ASSIGN                                                   !2, ~6
    8     8        STRLEN                                           ~8      !2
          9        IS_SMALLER                                               3, ~8
         10      > JMPZ                                                     ~9, ->18
         11    >   INIT_FCALL                                               'substr'
         12        SEND_VAR                                                 !2
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 3
         15        DO_ICALL                                         $10     
         16        QM_ASSIGN                                        ~11     $10
         17      > JMP                                                      ->19
         18    >   QM_ASSIGN                                        ~11     ''
         19    >   NOP                                                      
         20        FETCH_DIM_R                                      ~12     !1, 1
         21        FAST_CONCAT                                      ~13     '%40', ~12
         22        CONCAT                                           ~14     ~11, ~13
         23        ECHO                                                     ~14
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.74 ms | 1399 KiB | 17 Q