3v4l.org

run code in 300+ PHP versions simultaneously
<?php function matchIndetifier($str) { if ($str != preg_replace("/[^0-9a-z]/i", "", $str)) { //Invalid contains characters other than a-zA-Z0-9. } if (isnumeric($str)) { //999999 } if ($str != preg_replace("/\d/", "", $str)) { //At this part, it's not numeric, but still has numbers. Invalid. } if (ucfirst($str) == $str) { //Ullllll } if (strtolower($str) == $str) { //llllll } if (strtoupper($str) == $str) { //UUUUUU } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7GMlc
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E > > RETURN                                                   1

Function matchindetifier:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 8
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 12
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 19
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 24
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 29
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 34
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
Branch analysis from position: 29
Branch analysis from position: 24
Branch analysis from position: 19
Branch analysis from position: 12
Branch analysis from position: 8
filename:       /in/7GMlc
function name:  matchIndetifier
number of ops:  35
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5E0-9a-z%5D%2Fi'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        IS_NOT_EQUAL                                             !0, $1
          7      > JMPZ                                                     ~2, ->8
    7     8    >   INIT_FCALL_BY_NAME                                       'isnumeric'
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0  $3      
         11      > JMPZ                                                     $3, ->12
   11    12    >   INIT_FCALL                                               'preg_replace'
         13        SEND_VAL                                                 '%2F%5Cd%2F'
         14        SEND_VAL                                                 ''
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $4      
         17        IS_NOT_EQUAL                                             !0, $4
         18      > JMPZ                                                     ~5, ->19
   15    19    >   INIT_FCALL                                               'ucfirst'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $6      
         22        IS_EQUAL                                                 !0, $6
         23      > JMPZ                                                     ~7, ->24
   18    24    >   INIT_FCALL                                               'strtolower'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $8      
         27        IS_EQUAL                                                 !0, $8
         28      > JMPZ                                                     ~9, ->29
   21    29    >   INIT_FCALL                                               'strtoupper'
         30        SEND_VAR                                                 !0
         31        DO_ICALL                                         $10     
         32        IS_EQUAL                                                 !0, $10
         33      > JMPZ                                                     ~11, ->34
   24    34    > > RETURN                                                   null

End of function matchindetifier

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.5 ms | 945 KiB | 22 Q