3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = uniqid(time()); function getNumber($val) { $let = range('a', 'z'); for ($i = 0; $i < count($let); $i++) { $let[$i] = ("'`" . $let[$i] . "`is'"); } var_dump($let); $num = range(1, 26); $val = strtolower($val); $ret = preg_replace($let, $num, $val); $ret = substr(0, 10, $ret); return $ret; } $b = getNumber($a); echo "<pre>"; var_dump($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rkh1k
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'uniqid'
          1        INIT_FCALL                                               'time'
          2        DO_ICALL                                         $2      
          3        SEND_VAR                                                 $2
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
   19     6        INIT_FCALL                                               'getnumber'
          7        SEND_VAR                                                 !0
          8        DO_FCALL                                      0  $5      
          9        ASSIGN                                                   !1, $5
   21    10        ECHO                                                     '%3Cpre%3E'
   23    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function getnumber:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
Branch analysis from position: 8
filename:       /in/Rkh1k
function name:  getNumber
number of ops:  43
compiled vars:  !0 = $val, !1 = $let, !2 = $i, !3 = $num, !4 = $ret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 'a'
          3        SEND_VAL                                                 'z'
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    6     6        ASSIGN                                                   !2, 0
          7      > JMP                                                      ->14
    7     8    >   FETCH_DIM_R                                      ~9      !1, !2
          9        CONCAT                                           ~10     '%27%60', ~9
         10        CONCAT                                           ~11     ~10, '%60is%27'
         11        ASSIGN_DIM                                               !1, !2
         12        OP_DATA                                                  ~11
    6    13        PRE_INC                                                  !2
         14    >   COUNT                                            ~13     !1
         15        IS_SMALLER                                               !2, ~13
         16      > JMPNZ                                                    ~14, ->8
    9    17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
   11    20        INIT_FCALL                                               'range'
         21        SEND_VAL                                                 1
         22        SEND_VAL                                                 26
         23        DO_ICALL                                         $16     
         24        ASSIGN                                                   !3, $16
   12    25        INIT_FCALL                                               'strtolower'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $18     
         28        ASSIGN                                                   !0, $18
   13    29        INIT_FCALL                                               'preg_replace'
         30        SEND_VAR                                                 !1
         31        SEND_VAR                                                 !3
         32        SEND_VAR                                                 !0
         33        DO_ICALL                                         $20     
         34        ASSIGN                                                   !4, $20
   14    35        INIT_FCALL                                               'substr'
         36        SEND_VAL                                                 0
         37        SEND_VAL                                                 10
         38        SEND_VAR                                                 !4
         39        DO_ICALL                                         $22     
         40        ASSIGN                                                   !4, $22
   16    41      > RETURN                                                   !4
   17    42*     > RETURN                                                   null

End of function getnumber

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.17 ms | 1403 KiB | 28 Q