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 ); var_dump($verb, $arguments);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/47U1A
function name:  (null)
number of ops:  23
compiled vars:  !0 = $argument, !1 = $verb, !2 = $arguments
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                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        INIT_FCALL                                               'substr'
          7        SEND_VAR                                                 !0
          8        STRLEN                                           ~6      !1
          9        ADD                                              ~7      ~6, 1
         10        SEND_VAL                                                 ~7
    5    11        STRLEN                                           ~8      !0
         12        STRLEN                                           ~9      !1
         13        SUB                                              ~10     ~8, ~9
         14        SUB                                              ~11     ~10, 1
         15        SEND_VAL                                                 ~11
         16        DO_ICALL                                         $12     
    4    17        ASSIGN                                                   !2, $12
    6    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !1
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.91 ms | 1395 KiB | 19 Q