3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Sample task text ^2014-03-22 @Context &Tag"; $tok = strtok($string, '^@'); while($tok !== false) { echo $tok."\n</br>"; $tok = strtok('^@'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 7
Branch analysis from position: 15
Branch analysis from position: 7
filename:       /in/WkVRi
function name:  (null)
number of ops:  16
compiled vars:  !0 = $string, !1 = $tok
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Sample+task+text+%5E2014-03-22+%40Context+%26Tag'
    3     1        INIT_FCALL                                               'strtok'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%5E%40'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6      > JMP                                                      ->13
    6     7    >   CONCAT                                           ~5      !1, '%0A%3C%2Fbr%3E'
          8        ECHO                                                     ~5
    7     9        INIT_FCALL                                               'strtok'
         10        SEND_VAL                                                 '%5E%40'
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
    4    13    >   TYPE_CHECK                                  1018          !1
         14      > JMPNZ                                                    ~8, ->7
    8    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.09 ms | 1395 KiB | 15 Q