3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is tan 'example list'\nstring"; /* Use tab and newline as tokenizing characters as well */ $tok = strtok($string, " \n\t"); while ($tok !== false) { echo "Word=$tok|\n"; $tok = strtok(" \n\t"); } ?>
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 = 7
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
Branch analysis from position: 7
filename:       /in/q6RAT
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $tok
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'This++is+tan+%27example+list%27%0Astring'
    4     1        INIT_FCALL                                               'strtok'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '+%0A%09'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    6     6      > JMP                                                      ->15
    7     7    >   ROPE_INIT                                     3  ~6      'Word%3D'
          8        ROPE_ADD                                      1  ~6      ~6, !1
          9        ROPE_END                                      2  ~5      ~6, '%7C%0A'
         10        ECHO                                                     ~5
    8    11        INIT_FCALL                                               'strtok'
         12        SEND_VAL                                                 '+%0A%09'
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !1, $8
    6    15    >   TYPE_CHECK                                  1018          !1
         16      > JMPNZ                                                    ~10, ->7
   10    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.58 ms | 1386 KiB | 15 Q