3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reset_Token = "mn:hanspeter;dt:342432;"; $mail_name = getStringBetween($reset_Token,"mn:",";"); echo $mailname; function getStringBetween($str,$from,$to) { $sub = substr($str, strpos($str,$from)+strlen($from),strlen($str)); return substr($sub,0,strpos($sub,$to)); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/98Vms
function name:  (null)
number of ops:  9
compiled vars:  !0 = $reset_Token, !1 = $mail_name, !2 = $mailname
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'mn%3Ahanspeter%3Bdt%3A342432%3B'
    3     1        INIT_FCALL_BY_NAME                                       'getStringBetween'
          2        SEND_VAR_EX                                              !0
          3        SEND_VAL_EX                                              'mn%3A'
          4        SEND_VAL_EX                                              '%3B'
          5        DO_FCALL                                      0  $4      
          6        ASSIGN                                                   !1, $4
    4     7        ECHO                                                     !2
    9     8      > RETURN                                                   1

Function getstringbetween:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/98Vms
function name:  getStringBetween
number of ops:  27
compiled vars:  !0 = $str, !1 = $from, !2 = $to, !3 = $sub
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    7     3        INIT_FCALL                                               'substr'
          4        SEND_VAR                                                 !0
          5        INIT_FCALL                                               'strpos'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $4      
          9        STRLEN                                           ~5      !1
         10        ADD                                              ~6      $4, ~5
         11        SEND_VAL                                                 ~6
         12        STRLEN                                           ~7      !0
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                         $8      
         15        ASSIGN                                                   !3, $8
    8    16        INIT_FCALL                                               'substr'
         17        SEND_VAR                                                 !3
         18        SEND_VAL                                                 0
         19        INIT_FCALL                                               'strpos'
         20        SEND_VAR                                                 !3
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                         $10     
         23        SEND_VAR                                                 $10
         24        DO_ICALL                                         $11     
         25      > RETURN                                                   $11
    9    26*     > RETURN                                                   null

End of function getstringbetween

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.05 ms | 1396 KiB | 17 Q