3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = uniqid(time()); function getNumber($val) { $lets = array(); foreach (range('a', 'z') as $let) { $lets[] = ("'`" . $let . "`is'"); } var_dump($lets);die(); $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/Wr279
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
   22     6        INIT_FCALL                                               'getnumber'
          7        SEND_VAR                                                 !0
          8        DO_FCALL                                      0  $5      
          9        ASSIGN                                                   !1, $5
   24    10        ECHO                                                     '%3Cpre%3E'
   26    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
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 13
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 13
filename:       /in/Wr279
function name:  getNumber
number of ops:  45
compiled vars:  !0 = $val, !1 = $lets, !2 = $let, !3 = $num, !4 = $ret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !1, <array>
    7     2        INIT_FCALL                                               'range'
          3        SEND_VAL                                                 'a'
          4        SEND_VAL                                                 'z'
          5        DO_ICALL                                         $6      
          6      > FE_RESET_R                                       $7      $6, ->13
          7    > > FE_FETCH_R                                               $7, !2, ->13
    8     8    >   CONCAT                                           ~9      '%27%60', !2
          9        CONCAT                                           ~10     ~9, '%60is%27'
         10        ASSIGN_DIM                                               !1
         11        OP_DATA                                                  ~10
    7    12      > JMP                                                      ->7
         13    >   FE_FREE                                                  $7
   10    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > EXIT                                                     
   12    18*       INIT_FCALL                                               'range'
         19*       SEND_VAL                                                 1
         20*       SEND_VAL                                                 26
         21*       DO_ICALL                                         $12     
         22*       ASSIGN                                                   !3, $12
   13    23*       INIT_FCALL                                               'strtolower'
         24*       SEND_VAR                                                 !0
         25*       DO_ICALL                                         $14     
         26*       ASSIGN                                                   !0, $14
   14    27*       INIT_FCALL                                               'var_dump'
         28*       SEND_VAR                                                 !2
         29*       DO_ICALL                                                 
         30*       EXIT                                                     
   16    31*       INIT_FCALL                                               'preg_replace'
         32*       SEND_VAR                                                 !2
         33*       SEND_VAR                                                 !3
         34*       SEND_VAR                                                 !0
         35*       DO_ICALL                                         $17     
         36*       ASSIGN                                                   !4, $17
   17    37*       INIT_FCALL                                               'substr'
         38*       SEND_VAL                                                 0
         39*       SEND_VAL                                                 10
         40*       SEND_VAR                                                 !4
         41*       DO_ICALL                                         $19     
         42*       ASSIGN                                                   !4, $19
   19    43*       RETURN                                                   !4
   20    44*     > RETURN                                                   null

End of function getnumber

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.44 ms | 1407 KiB | 28 Q