3v4l.org

run code in 300+ PHP versions simultaneously
<?php function generate_GUID() { $uuid = md5(uniqid(rand(), true)); $guid = substr($uuid,0,8)."-". substr($uuid,8,4)."-". substr($uuid,12,4)."-". substr($uuid,16,4)."-". substr($uuid,20,12); return $guid; } echo strtoupper(generate_GUID());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JJlGI
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'strtoupper'
          1        INIT_FCALL                                               'generate_guid'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                         $1      
          5        ECHO                                                     $1
          6      > RETURN                                                   1

Function generate_guid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JJlGI
function name:  generate_GUID
number of ops:  46
compiled vars:  !0 = $uuid, !1 = $guid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'md5'
          1        INIT_FCALL                                               'uniqid'
          2        INIT_FCALL                                               'rand'
          3        DO_ICALL                                         $2      
          4        SEND_VAR                                                 $2
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !0, $4
    5    10        INIT_FCALL                                               'substr'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 0
         13        SEND_VAL                                                 8
         14        DO_ICALL                                         $6      
         15        CONCAT                                           ~7      $6, '-'
    6    16        INIT_FCALL                                               'substr'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 8
         19        SEND_VAL                                                 4
         20        DO_ICALL                                         $8      
         21        CONCAT                                           ~9      ~7, $8
         22        CONCAT                                           ~10     ~9, '-'
    7    23        INIT_FCALL                                               'substr'
         24        SEND_VAR                                                 !0
         25        SEND_VAL                                                 12
         26        SEND_VAL                                                 4
         27        DO_ICALL                                         $11     
         28        CONCAT                                           ~12     ~10, $11
         29        CONCAT                                           ~13     ~12, '-'
    8    30        INIT_FCALL                                               'substr'
         31        SEND_VAR                                                 !0
         32        SEND_VAL                                                 16
         33        SEND_VAL                                                 4
         34        DO_ICALL                                         $14     
         35        CONCAT                                           ~15     ~13, $14
         36        CONCAT                                           ~16     ~15, '-'
    9    37        INIT_FCALL                                               'substr'
         38        SEND_VAR                                                 !0
         39        SEND_VAL                                                 20
         40        SEND_VAL                                                 12
         41        DO_ICALL                                         $17     
         42        CONCAT                                           ~18     ~16, $17
    5    43        ASSIGN                                                   !1, ~18
   10    44      > RETURN                                                   !1
   11    45*     > RETURN                                                   null

End of function generate_guid

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.45 ms | 1403 KiB | 24 Q