3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = uniqid(time()); function getNumber($val) { $let = range('a', 'z'); var_dump($let);die(); 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/5vQC0
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
   21     6        INIT_FCALL                                               'getnumber'
          7        SEND_VAR                                                 !0
          8        DO_FCALL                                      0  $5      
          9        ASSIGN                                                   !1, $5
   23    10        ECHO                                                     '%3Cpre%3E'
   25    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 = 79) Position 1 = -2
filename:       /in/5vQC0
function name:  getNumber
number of ops:  48
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        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > EXIT                                                     
    7    10*       ASSIGN                                                   !2, 0
         11*       JMP                                                      ->18
    8    12*       FETCH_DIM_R                                      ~10     !1, !2
         13*       CONCAT                                           ~11     '%27%60', ~10
         14*       CONCAT                                           ~12     ~11, '%60is%27'
         15*       ASSIGN_DIM                                               !1, !2
         16*       OP_DATA                                                  ~12
    7    17*       PRE_INC                                                  !2
         18*       COUNT                                            ~14     !1
         19*       IS_SMALLER                                               !2, ~14
         20*       JMPNZ                                                    ~15, ->12
   11    21*       INIT_FCALL                                               'range'
         22*       SEND_VAL                                                 1
         23*       SEND_VAL                                                 26
         24*       DO_ICALL                                         $16     
         25*       ASSIGN                                                   !3, $16
   12    26*       INIT_FCALL                                               'strtolower'
         27*       SEND_VAR                                                 !0
         28*       DO_ICALL                                         $18     
         29*       ASSIGN                                                   !0, $18
   13    30*       INIT_FCALL                                               'var_dump'
         31*       SEND_VAR                                                 !1
         32*       DO_ICALL                                                 
         33*       EXIT                                                     
   15    34*       INIT_FCALL                                               'preg_replace'
         35*       SEND_VAR                                                 !1
         36*       SEND_VAR                                                 !3
         37*       SEND_VAR                                                 !0
         38*       DO_ICALL                                         $21     
         39*       ASSIGN                                                   !4, $21
   16    40*       INIT_FCALL                                               'substr'
         41*       SEND_VAL                                                 0
         42*       SEND_VAL                                                 10
         43*       SEND_VAR                                                 !4
         44*       DO_ICALL                                         $23     
         45*       ASSIGN                                                   !4, $23
   18    46*       RETURN                                                   !4
   19    47*     > RETURN                                                   null

End of function getnumber

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.38 ms | 1403 KiB | 28 Q