3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.41 ms | 1395 KiB | 15 Q