3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uuid = "DE599178-5DDB-FF30-F5AA-C8939F827D57"; function printResults($str) { if (eregi("^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$", $str)) { printf("'%s' is a valid GUID/UUID.\n", $str); } else { printf("'%s' is NOT a valid GUID/UUID.\n", $str); } } printResults($uuid); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RdhJH
function name:  (null)
number of ops:  5
compiled vars:  !0 = $uuid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'DE599178-5DDB-FF30-F5AA-C8939F827D57'
   12     1        INIT_FCALL                                               'printresults'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
   14     4      > RETURN                                                   1

Function printresults:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RdhJH
function name:  printResults
number of ops:  16
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL_BY_NAME                                       'eregi'
          2        SEND_VAL_EX                                              '%5E%5B0-9a-f%5D%7B8%7D%28-%5B0-9a-f%5D%7B4%7D%29%7B3%7D-%5B0-9a-f%5D%7B12%7D%24'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $1      
          5      > JMPZ                                                     $1, ->11
    6     6    >   INIT_FCALL                                               'printf'
          7        SEND_VAL                                                 '%27%25s%27+is+a+valid+GUID%2FUUID.%0A'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > JMP                                                      ->15
    8    11    >   INIT_FCALL                                               'printf'
         12        SEND_VAL                                                 '%27%25s%27+is+NOT+a+valid+GUID%2FUUID.%0A'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
   10    15    > > RETURN                                                   null

End of function printresults

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.89 ms | 1402 KiB | 16 Q