3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $b = 'xor'; if (is_numeric($a) ^ is_numeric($b)) { echo '1 Number'; } else { echo '0 or 2 numbers'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oce7p
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, 'xor'
    4     2        INIT_FCALL                                               'is_numeric'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        INIT_FCALL                                               'is_numeric'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $5      
          8        BW_XOR                                           ~6      $4, $5
          9      > JMPZ                                                     ~6, ->12
    6    10    >   ECHO                                                     '1+Number'
         11      > JMP                                                      ->13
   10    12    >   ECHO                                                     '0+or+2+numbers'
   11    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.04 ms | 1394 KiB | 15 Q