3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'blahblah'; $b = 'hablalbb'; $x = 0; for ($i = 0; $i < 8; $i++) { $x ^= ($a[$i] ^ $b[$i]); var_dump($x); } var_dump($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 5
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 5
Branch analysis from position: 15
Branch analysis from position: 5
filename:       /in/m2ndX
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b, !2 = $x, !3 = $i
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                                                      ->13
    9     5    >   FETCH_DIM_R                                      ~8      !0, !3
          6        FETCH_DIM_R                                      ~9      !1, !3
          7        BW_XOR                                           ~10     ~8, ~9
          8        ASSIGN_OP                                    11          !2, ~10
   10     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
    8    12        PRE_INC                                                  !3
         13    >   IS_SMALLER                                               !3, 8
         14      > JMPNZ                                                    ~14, ->5
   13    15    >   INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.17 ms | 1395 KiB | 15 Q