3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'blahblah'; $b = 'hablalbb'; $x = 0; for ($i = 0; $i < 8; $i++) { $y = ord($a[$i]) ^ ord($b[$i]); $x ^= ($y); var_dump($x); } var_dump($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 5
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 5
Branch analysis from position: 22
Branch analysis from position: 5
filename:       /in/M7oAU
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $b, !2 = $x, !3 = $i, !4 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'blahblah'
    4     1        ASSIGN                                                   !1, 'hablalbb'
    6     2        ASSIGN                                                   !2, 0
    8     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->20
    9     5    >   INIT_FCALL                                               'ord'
          6        FETCH_DIM_R                                      ~9      !0, !3
          7        SEND_VAL                                                 ~9
          8        DO_ICALL                                         $10     
          9        INIT_FCALL                                               'ord'
         10        FETCH_DIM_R                                      ~11     !1, !3
         11        SEND_VAL                                                 ~11
         12        DO_ICALL                                         $12     
         13        BW_XOR                                           ~13     $10, $12
         14        ASSIGN                                                   !4, ~13
   10    15        ASSIGN_OP                                    11          !2, !4
   11    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
    8    19        PRE_INC                                                  !3
         20    >   IS_SMALLER                                               !3, 8
         21      > JMPNZ                                                    ~18, ->5
   14    22    >   INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.8 ms | 1395 KiB | 17 Q