3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 128; while($s=strtok($n, "")) echo !$s%$n ? die("0") : die("1");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/dDj3h
function name:  (null)
number of ops:  18
compiled vars:  !0 = $n, !1 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 128
    5     1      > JMP                                                      ->11
    6     2    >   BOOL_NOT                                         ~3      !1
          3        MOD                                              ~4      ~3, !0
          4      > JMPZ                                                     ~4, ->8
          5    > > EXIT                                                     '0'
          6*       QM_ASSIGN                                        ~5      <true>
          7*       JMP                                                      ->10
          8    > > EXIT                                                     '1'
          9*       QM_ASSIGN                                        ~5      <true>
         10*       ECHO                                                     ~5
    5    11    >   INIT_FCALL                                               'strtok'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 ''
         14        DO_ICALL                                         $6      
         15        ASSIGN                                           ~7      !1, $6
         16      > JMPNZ                                                    ~7, ->2
    6    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.33 ms | 1395 KiB | 15 Q