3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i <= 255; $i++) var_dump(chr($i XOR 128) !== chr($i), bin2hex(chr($i)), bin2hex(chr(chr($i) XOR chr(128))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 2
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 2
Branch analysis from position: 34
Branch analysis from position: 2
filename:       /in/UA33u
function name:  (null)
number of ops:  35
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->32
    4     2    >   INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'chr'
          4        BOOL_XOR                                         ~2      !0, 128
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                         $3      
          7        INIT_FCALL                                               'chr'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        IS_NOT_IDENTICAL                                 ~5      $3, $4
         11        SEND_VAL                                                 ~5
         12        INIT_FCALL                                               'bin2hex'
         13        INIT_FCALL                                               'chr'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        DO_ICALL                                         $7      
         18        SEND_VAR                                                 $7
         19        INIT_FCALL                                               'bin2hex'
         20        INIT_FCALL                                               'chr'
         21        INIT_FCALL                                               'chr'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $8      
         24        BOOL_XOR                                         ~9      $8, '%80'
         25        SEND_VAL                                                 ~9
         26        DO_ICALL                                         $10     
         27        SEND_VAR                                                 $10
         28        DO_ICALL                                         $11     
         29        SEND_VAR                                                 $11
         30        DO_ICALL                                                 
    3    31        PRE_INC                                                  !0
         32    >   IS_SMALLER_OR_EQUAL                                      !0, 255
         33      > JMPNZ                                                    ~14, ->2
    4    34    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.96 ms | 1388 KiB | 19 Q