3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.39 ms | 1396 KiB | 19 Q