3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'cat'; $b = 'cats'; for ($i = 0; $i < strlen($a); $i++) { if(!isset($result)) $result = 0; $result |= (ord($a[$i]) ^ ord($b[$i])); } $c = ($result == 0) ? "equal" : "not equal";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 4
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 4
Branch analysis from position: 22
Branch analysis from position: 4
Branch analysis from position: 8
filename:       /in/p2h2i
function name:  (null)
number of ops:  29
compiled vars:  !0 = $a, !1 = $b, !2 = $i, !3 = $result, !4 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'cat'
    4     1        ASSIGN                                                   !1, 'cats'
    6     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->19
    7     4    >   ISSET_ISEMPTY_CV                                 ~8      !3
          5        BOOL_NOT                                         ~9      ~8
          6      > JMPZ                                                     ~9, ->8
          7    >   ASSIGN                                                   !3, 0
    8     8    >   INIT_FCALL                                               'ord'
          9        FETCH_DIM_R                                      ~11     !0, !2
         10        SEND_VAL                                                 ~11
         11        DO_ICALL                                         $12     
         12        INIT_FCALL                                               'ord'
         13        FETCH_DIM_R                                      ~13     !1, !2
         14        SEND_VAL                                                 ~13
         15        DO_ICALL                                         $14     
         16        BW_XOR                                           ~15     $12, $14
         17        ASSIGN_OP                                     9          !3, ~15
    6    18        PRE_INC                                                  !2
         19    >   STRLEN                                           ~18     !0
         20        IS_SMALLER                                               !2, ~18
         21      > JMPNZ                                                    ~19, ->4
   10    22    >   IS_EQUAL                                                 !3, 0
         23      > JMPZ                                                     ~20, ->26
         24    >   QM_ASSIGN                                        ~21     'equal'
         25      > JMP                                                      ->27
         26    >   QM_ASSIGN                                        ~21     'not+equal'
         27    >   ASSIGN                                                   !4, ~21
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.71 ms | 1401 KiB | 15 Q