3v4l.org

run code in 300+ PHP versions simultaneously
<?php function tokenize($str, $token) { $tokenizedStrArr = array(); $tokStr = strtok($str, $token); while($tokStr !== false) { $tokenizedStrArr[] = $tokStr; $tokStr = strtok($token); } return $tokenizedStrArr; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hRFTd
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E > > RETURN                                                   1

Function tokenize:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 9
Branch analysis from position: 17
Branch analysis from position: 9
filename:       /in/hRFTd
function name:  tokenize
number of ops:  19
compiled vars:  !0 = $str, !1 = $token, !2 = $tokenizedStrArr, !3 = $tokStr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ASSIGN                                                   !2, <array>
    5     3        INIT_FCALL                                               'strtok'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !3, $5
    7     8      > JMP                                                      ->15
    8     9    >   ASSIGN_DIM                                               !2
         10        OP_DATA                                                  !3
   10    11        INIT_FCALL                                               'strtok'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !3, $8
    7    15    >   TYPE_CHECK                                  1018          !3
         16      > JMPNZ                                                    ~10, ->9
   13    17    > > RETURN                                                   !2
   14    18*     > RETURN                                                   null

End of function tokenize

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.67 ms | 1395 KiB | 15 Q