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, "e"); while ($tok !== false) { echo $tok; $tok = strtok("e"); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 7
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 7
Branch analysis from position: 14
Branch analysis from position: 7
filename:       /in/sk6st
function name:  (null)
number of ops:  15
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                                                 'e'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    8     6      > JMP                                                      ->12
   10     7    >   ECHO                                                     !1
   11     8        INIT_FCALL                                               'strtok'
          9        SEND_VAL                                                 'e'
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !1, $5
    8    12    >   TYPE_CHECK                                  1018          !1
         13      > JMPNZ                                                    ~7, ->7
   12    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.07 ms | 1394 KiB | 15 Q