3v4l.org

run code in 500+ PHP versions simultaneously
<?php $bin1 = b"\x31\x30"; $bin2 = b"\x30\x29"; var_dump( decbin(hexdec(bin2hex($bin1))) ); var_dump( decbin(hexdec(bin2hex($bin2))) ); var_dump( $bin1 >> 1 ); var_dump( $bin1 << 1 ); var_dump( decbin(hexdec(bin2hex(~$bin1))) ); $bin3 = $bin1 | $bin2; var_dump( decbin(hexdec(bin2hex($bin3))) ); $bin3 = $bin1 & $bin2; var_dump( decbin(hexdec(bin2hex($bin3))) ); $bin3 = $bin1 ^ $bin2; var_dump( decbin(hexdec(bin2hex($bin3))) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MBadR
function name:  (null)
number of ops:  90
compiled vars:  !0 = $bin1, !1 = $bin2, !2 = $bin3
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '10'
    4     1        ASSIGN                                                       !1, '0%29'
    6     2        INIT_FCALL                                                   'var_dump'
          3        INIT_FCALL                                                   'decbin'
          4        INIT_FCALL                                                   'hexdec'
          5        INIT_FCALL                                                   'bin2hex'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                             $5      
          8        SEND_VAR                                                     $5
          9        DO_ICALL                                             $6      
         10        SEND_VAR                                                     $6
         11        DO_ICALL                                             $7      
         12        SEND_VAR                                                     $7
         13        DO_ICALL                                                     
    7    14        INIT_FCALL                                                   'var_dump'
         15        INIT_FCALL                                                   'decbin'
         16        INIT_FCALL                                                   'hexdec'
         17        INIT_FCALL                                                   'bin2hex'
         18        SEND_VAR                                                     !1
         19        DO_ICALL                                             $9      
         20        SEND_VAR                                                     $9
         21        DO_ICALL                                             $10     
         22        SEND_VAR                                                     $10
         23        DO_ICALL                                             $11     
         24        SEND_VAR                                                     $11
         25        DO_ICALL                                                     
    9    26        INIT_FCALL                                                   'var_dump'
         27        SR                                                   ~13     !0, 1
         28        SEND_VAL                                                     ~13
         29        DO_ICALL                                                     
   10    30        INIT_FCALL                                                   'var_dump'
         31        SL                                                   ~15     !0, 1
         32        SEND_VAL                                                     ~15
         33        DO_ICALL                                                     
   12    34        INIT_FCALL                                                   'var_dump'
         35        INIT_FCALL                                                   'decbin'
         36        INIT_FCALL                                                   'hexdec'
         37        INIT_FCALL                                                   'bin2hex'
         38        BW_NOT                                               ~17     !0
         39        SEND_VAL                                                     ~17
         40        DO_ICALL                                             $18     
         41        SEND_VAR                                                     $18
         42        DO_ICALL                                             $19     
         43        SEND_VAR                                                     $19
         44        DO_ICALL                                             $20     
         45        SEND_VAR                                                     $20
         46        DO_ICALL                                                     
   14    47        BW_OR                                                ~22     !0, !1
         48        ASSIGN                                                       !2, ~22
   15    49        INIT_FCALL                                                   'var_dump'
         50        INIT_FCALL                                                   'decbin'
         51        INIT_FCALL                                                   'hexdec'
         52        INIT_FCALL                                                   'bin2hex'
         53        SEND_VAR                                                     !2
         54        DO_ICALL                                             $24     
         55        SEND_VAR                                                     $24
         56        DO_ICALL                                             $25     
         57        SEND_VAR                                                     $25
         58        DO_ICALL                                             $26     
         59        SEND_VAR                                                     $26
         60        DO_ICALL                                                     
   17    61        BW_AND                                               ~28     !0, !1
         62        ASSIGN                                                       !2, ~28
   18    63        INIT_FCALL                                                   'var_dump'
         64        INIT_FCALL                                                   'decbin'
         65        INIT_FCALL                                                   'hexdec'
         66        INIT_FCALL                                                   'bin2hex'
         67        SEND_VAR                                                     !2
         68        DO_ICALL                                             $30     
         69        SEND_VAR                                                     $30
         70        DO_ICALL                                             $31     
         71        SEND_VAR                                                     $31
         72        DO_ICALL                                             $32     
         73        SEND_VAR                                                     $32
         74        DO_ICALL                                                     
   20    75        BW_XOR                                               ~34     !0, !1
         76        ASSIGN                                                       !2, ~34
   21    77        INIT_FCALL                                                   'var_dump'
         78        INIT_FCALL                                                   'decbin'
         79        INIT_FCALL                                                   'hexdec'
         80        INIT_FCALL                                                   'bin2hex'
         81        SEND_VAR                                                     !2
         82        DO_ICALL                                             $36     
         83        SEND_VAR                                                     $36
         84        DO_ICALL                                             $37     
         85        SEND_VAR                                                     $37
         86        DO_ICALL                                             $38     
         87        SEND_VAR                                                     $38
         88        DO_ICALL                                                     
         89      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.09 ms | 3358 KiB | 17 Q