3v4l.org

run code in 300+ PHP versions simultaneously
<?php function generate_GUID() { $uuid = md5(uniqid(rand(), true)); print_r($uuid);exit; $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/H8EYQ
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     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 = 79) Position 1 = -2
filename:       /in/H8EYQ
function name:  generate_GUID
number of ops:  50
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                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > EXIT                                                     
    6    14*       INIT_FCALL                                               'substr'
         15*       SEND_VAR                                                 !0
         16*       SEND_VAL                                                 0
         17*       SEND_VAL                                                 8
         18*       DO_ICALL                                         $7      
         19*       CONCAT                                           ~8      $7, '-'
    7    20*       INIT_FCALL                                               'substr'
         21*       SEND_VAR                                                 !0
         22*       SEND_VAL                                                 8
         23*       SEND_VAL                                                 4
         24*       DO_ICALL                                         $9      
         25*       CONCAT                                           ~10     ~8, $9
         26*       CONCAT                                           ~11     ~10, '-'
    8    27*       INIT_FCALL                                               'substr'
         28*       SEND_VAR                                                 !0
         29*       SEND_VAL                                                 12
         30*       SEND_VAL                                                 4
         31*       DO_ICALL                                         $12     
         32*       CONCAT                                           ~13     ~11, $12
         33*       CONCAT                                           ~14     ~13, '-'
    9    34*       INIT_FCALL                                               'substr'
         35*       SEND_VAR                                                 !0
         36*       SEND_VAL                                                 16
         37*       SEND_VAL                                                 4
         38*       DO_ICALL                                         $15     
         39*       CONCAT                                           ~16     ~14, $15
         40*       CONCAT                                           ~17     ~16, '-'
   10    41*       INIT_FCALL                                               'substr'
         42*       SEND_VAR                                                 !0
         43*       SEND_VAL                                                 20
         44*       SEND_VAL                                                 12
         45*       DO_ICALL                                         $18     
         46*       CONCAT                                           ~19     ~17, $18
    6    47*       ASSIGN                                                   !1, ~19
   11    48*       RETURN                                                   !1
   12    49*     > RETURN                                                   null

End of function generate_guid

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.38 ms | 1403 KiB | 26 Q