3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sub_string = 'rayy@'; $str = 'rayy@example.com'; if (substr($str, 0, strlen($sub_string)) == $sub_string) { $str = substr($str, strlen($sub_string)); } echo $str;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/eQCDm
function name:  (null)
number of ops:  18
compiled vars:  !0 = $sub_string, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'rayy%40'
    3     1        ASSIGN                                                   !1, 'rayy%40example.com'
    4     2        INIT_FCALL                                               'substr'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 0
          5        STRLEN                                           ~4      !0
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                         $5      
          8        IS_EQUAL                                                 !0, $5
          9      > JMPZ                                                     ~6, ->16
    6    10    >   INIT_FCALL                                               'substr'
         11        SEND_VAR                                                 !1
         12        STRLEN                                           ~7      !0
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                         $8      
         15        ASSIGN                                                   !1, $8
    8    16    >   ECHO                                                     !1
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.73 ms | 1386 KiB | 15 Q