3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.73 ms | 1396 KiB | 25 Q