3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is\tan example\nstring"; // Utilisez aussi les nouvelles lignes et les tabulations // comme séparateur de mots $tok = strtok($string, " \n\t"); while ($tok !== false) { echo "Word=$tok<br />"; $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/EDRQA
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $tok
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'This+is%09an+example%0Astring'
    6     1        INIT_FCALL                                               'strtok'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '+%0A%09'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    8     6      > JMP                                                      ->15
    9     7    >   ROPE_INIT                                     3  ~6      'Word%3D'
          8        ROPE_ADD                                      1  ~6      ~6, !1
          9        ROPE_END                                      2  ~5      ~6, '%3Cbr+%2F%3E'
         10        ECHO                                                     ~5
   10    11        INIT_FCALL                                               'strtok'
         12        SEND_VAL                                                 '+%0A%09'
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !1, $8
    8    15    >   TYPE_CHECK                                  1018          !1
         16      > JMPNZ                                                    ~10, ->7
   11    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.35 ms | 1395 KiB | 15 Q