3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i <= 255; $i++) { $x = chr($i) ^ chr(128); var_dump([$i, $x, $i !== $x]); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
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 = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
Branch analysis from position: 2
filename:       /in/ctqGR
function name:  (null)
number of ops:  18
compiled vars:  !0 = $i, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->15
    5     2    >   INIT_FCALL                                               'chr'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        BW_XOR                                           ~4      $3, '%80'
          6        ASSIGN                                                   !1, ~4
    6     7        INIT_FCALL                                               'var_dump'
          8        INIT_ARRAY                                       ~6      !0
          9        ADD_ARRAY_ELEMENT                                ~6      !1
         10        IS_NOT_IDENTICAL                                 ~7      !0, !1
         11        ADD_ARRAY_ELEMENT                                ~6      ~7
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                                 
    3    14        PRE_INC                                                  !0
         15    >   IS_SMALLER_OR_EQUAL                                      !0, 255
         16      > JMPNZ                                                    ~10, ->2
    7    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.68 ms | 1395 KiB | 17 Q