3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!($letter >= 'A' && $letter <= 'Z' || $letter >= 'a' && $letter <= 'z')) { throw new \InvalidArgumentException(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
Branch analysis from position: 10
Branch analysis from position: 4
filename:       /in/A7F7K
function name:  (null)
number of ops:  16
compiled vars:  !0 = $letter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   IS_SMALLER_OR_EQUAL                              ~1      'A', !0
          1      > JMPZ_EX                                          ~1      ~1, ->4
          2    >   IS_SMALLER_OR_EQUAL                              ~2      !0, 'Z'
          3        BOOL                                             ~1      ~2
          4    > > JMPNZ_EX                                         ~1      ~1, ->10
          5    >   IS_SMALLER_OR_EQUAL                              ~3      'a', !0
          6      > JMPZ_EX                                          ~3      ~3, ->9
          7    >   IS_SMALLER_OR_EQUAL                              ~4      !0, 'z'
          8        BOOL                                             ~3      ~4
          9    >   BOOL                                             ~1      ~3
         10    >   BOOL_NOT                                         ~5      ~1
         11      > JMPZ                                                     ~5, ->15
    3    12    >   NEW                                              $6      'InvalidArgumentException'
         13        DO_FCALL                                      0          
         14      > THROW                                         0          $6
    4    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.18 ms | 1394 KiB | 13 Q