3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = "jim@gmail.com"; $username = substr( explode("@", $email)[0], 0, 5 ); echo $username;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AhRsN
function name:  (null)
number of ops:  14
compiled vars:  !0 = $email, !1 = $username
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'jim%40gmail.com'
    3     1        INIT_FCALL                                               'substr'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%40'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        FETCH_DIM_R                                      ~4      $3, 0
          7        SEND_VAL                                                 ~4
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 5
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !1, $5
    4    12        ECHO                                                     !1
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.42 ms | 1385 KiB | 17 Q