3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is an example string"; $token = strtok($string, " "); while ($token !== false) { echo $token . PHP_EOL; $token = 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/GldE5
function name:  (null)
number of ops:  16
compiled vars:  !0 = $string, !1 = $token
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'This+is+an+example+string'
    3     1        INIT_FCALL                                               'strtok'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '+'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    5     6      > JMP                                                      ->13
    6     7    >   CONCAT                                           ~5      !1, '%0A'
          8        ECHO                                                     ~5
    7     9        INIT_FCALL                                               'strtok'
         10        SEND_VAL                                                 '+'
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
    5    13    >   TYPE_CHECK                                  1018          !1
         14      > JMPNZ                                                    ~8, ->7
    8    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.96 ms | 997 KiB | 14 Q