3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'football'; $b = 'soccerballs'; echo strcmp($a^$a,$b^$b), "\n"; echo strcmp($b^$b,$a^$a), "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/slumF
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'football'
    4     1        ASSIGN                                                   !1, 'soccerballs'
    5     2        INIT_FCALL                                               'strcmp'
          3        BW_XOR                                           ~4      !0, !0
          4        SEND_VAL                                                 ~4
          5        BW_XOR                                           ~5      !1, !1
          6        SEND_VAL                                                 ~5
          7        DO_ICALL                                         $6      
          8        ECHO                                                     $6
          9        ECHO                                                     '%0A'
    6    10        INIT_FCALL                                               'strcmp'
         11        BW_XOR                                           ~7      !1, !1
         12        SEND_VAL                                                 ~7
         13        BW_XOR                                           ~8      !0, !0
         14        SEND_VAL                                                 ~8
         15        DO_ICALL                                         $9      
         16        ECHO                                                     $9
         17        ECHO                                                     '%0A'
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.23 ms | 1394 KiB | 15 Q