3v4l.org

run code in 300+ PHP versions simultaneously
<?php $argument = "8BITMIME "; $verb = strtok( $argument, ' ' ); $arguments = substr( $argument, strlen( $verb ) + 1, strlen( $argument ) - strlen( $verb ) - 1 ); $_esmtp = array(); $_esmtp[$verb] = $arguments; var_dump($verb, $arguments, isset($_esmtp['8BITMIME'] ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tR2ob
function name:  (null)
number of ops:  28
compiled vars:  !0 = $argument, !1 = $verb, !2 = $arguments, !3 = $_esmtp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '8BITMIME+'
    3     1        INIT_FCALL                                               'strtok'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '+'
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    4     6        INIT_FCALL                                               'substr'
          7        SEND_VAR                                                 !0
          8        STRLEN                                           ~7      !1
          9        ADD                                              ~8      ~7, 1
         10        SEND_VAL                                                 ~8
    5    11        STRLEN                                           ~9      !0
         12        STRLEN                                           ~10     !1
         13        SUB                                              ~11     ~9, ~10
         14        SUB                                              ~12     ~11, 1
         15        SEND_VAL                                                 ~12
         16        DO_ICALL                                         $13     
    4    17        ASSIGN                                                   !2, $13
    6    18        ASSIGN                                                   !3, <array>
    7    19        ASSIGN_DIM                                               !3, !1
         20        OP_DATA                                                  !2
    8    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !1
         23        SEND_VAR                                                 !2
         24        ISSET_ISEMPTY_DIM_OBJ                         0  ~17     !3, '8BITMIME'
         25        SEND_VAL                                                 ~17
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.39 ms | 1395 KiB | 19 Q