3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uniqueId = '123456789123456789123456789'; $guid = substr($uniqueId,0,8)."-". substr($uniqueId,8,4)."-". substr($uniqueId,12,4)."-". substr($uniqueId,16,4)."-". substr($uniqueId,20,12); echo strtoupper($guid);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dWLXA
function name:  (null)
number of ops:  40
compiled vars:  !0 = $uniqueId, !1 = $guid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '123456789123456789123456789'
    3     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 8
          5        DO_ICALL                                         $3      
          6        CONCAT                                           ~4      $3, '-'
    4     7        INIT_FCALL                                               'substr'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 8
         10        SEND_VAL                                                 4
         11        DO_ICALL                                         $5      
         12        CONCAT                                           ~6      ~4, $5
         13        CONCAT                                           ~7      ~6, '-'
    5    14        INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 12
         17        SEND_VAL                                                 4
         18        DO_ICALL                                         $8      
         19        CONCAT                                           ~9      ~7, $8
         20        CONCAT                                           ~10     ~9, '-'
    6    21        INIT_FCALL                                               'substr'
         22        SEND_VAR                                                 !0
         23        SEND_VAL                                                 16
         24        SEND_VAL                                                 4
         25        DO_ICALL                                         $11     
         26        CONCAT                                           ~12     ~10, $11
         27        CONCAT                                           ~13     ~12, '-'
    7    28        INIT_FCALL                                               'substr'
         29        SEND_VAR                                                 !0
         30        SEND_VAL                                                 20
         31        SEND_VAL                                                 12
         32        DO_ICALL                                         $14     
         33        CONCAT                                           ~15     ~13, $14
    3    34        ASSIGN                                                   !1, ~15
    8    35        INIT_FCALL                                               'strtoupper'
         36        SEND_VAR                                                 !1
         37        DO_ICALL                                         $17     
         38        ECHO                                                     $17
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.13 ms | 1396 KiB | 17 Q