3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.91 ms | 1395 KiB | 15 Q