3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.47 ms | 1395 KiB | 19 Q