3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'xi@fa.net'; echo substr($var, strpos($var, ".") + 1); echo "\n"; echo substr($var, strpos($var, "."));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EbLZ8
function name:  (null)
number of ops:  22
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'xi%40fa.net'
    3     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        INIT_FCALL                                               'strpos'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 '.'
          6        DO_ICALL                                         $1      
          7        ADD                                              ~2      $1, 1
          8        SEND_VAL                                                 ~2
          9        DO_ICALL                                         $3      
         10        ECHO                                                     $3
    4    11        ECHO                                                     '%0A'
    5    12        INIT_FCALL                                               'substr'
         13        SEND_VAR                                                 !0
         14        INIT_FCALL                                               'strpos'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 '.'
         17        DO_ICALL                                         $4      
         18        SEND_VAR                                                 $4
         19        DO_ICALL                                         $5      
         20        ECHO                                                     $5
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.61 ms | 1395 KiB | 17 Q