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'"); } $num = range(1, 26); $val = strtolower($val); var_dump($let);die(); $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/VaJH3
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
   20     6        INIT_FCALL                                               'getnumber'
          7        SEND_VAR                                                 !0
          8        DO_FCALL                                      0  $5      
          9        ASSIGN                                                   !1, $5
   22    10        ECHO                                                     '%3Cpre%3E'
   24    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 = 79) 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/VaJH3
function name:  getNumber
number of ops:  44
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
   10    17    >   INIT_FCALL                                               'range'
         18        SEND_VAL                                                 1
         19        SEND_VAL                                                 26
         20        DO_ICALL                                         $15     
         21        ASSIGN                                                   !3, $15
   11    22        INIT_FCALL                                               'strtolower'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $17     
         25        ASSIGN                                                   !0, $17
   12    26        INIT_FCALL                                               'var_dump'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                                 
         29      > EXIT                                                     
   14    30*       INIT_FCALL                                               'preg_replace'
         31*       SEND_VAR                                                 !1
         32*       SEND_VAR                                                 !3
         33*       SEND_VAR                                                 !0
         34*       DO_ICALL                                         $20     
         35*       ASSIGN                                                   !4, $20
   15    36*       INIT_FCALL                                               'substr'
         37*       SEND_VAL                                                 0
         38*       SEND_VAL                                                 10
         39*       SEND_VAR                                                 !4
         40*       DO_ICALL                                         $22     
         41*       ASSIGN                                                   !4, $22
   17    42*       RETURN                                                   !4
   18    43*     > RETURN                                                   null

End of function getnumber

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.16 ms | 1403 KiB | 28 Q