3v4l.org

run code in 300+ PHP versions simultaneously
<?php $alpha = '1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-'; for ($x=0,$s=null;$x<5;$x++) { $s .= substr(mt_rand(0,strlen($alpha)-1), 1); } echo $s;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
Branch analysis from position: 4
filename:       /in/5qJtc
function name:  (null)
number of ops:  20
compiled vars:  !0 = $alpha, !1 = $x, !2 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-'
    4     1        ASSIGN                                                   !1, 0
          2        ASSIGN                                                   !2, null
          3      > JMP                                                      ->16
    6     4    >   INIT_FCALL                                               'substr'
          5        INIT_FCALL                                               'mt_rand'
          6        SEND_VAL                                                 0
          7        STRLEN                                           ~6      !0
          8        SUB                                              ~7      ~6, 1
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                         $8      
         11        SEND_VAR                                                 $8
         12        SEND_VAL                                                 1
         13        DO_ICALL                                         $9      
         14        ASSIGN_OP                                     8          !2, $9
    4    15        PRE_INC                                                  !1
         16    >   IS_SMALLER                                               !1, 5
         17      > JMPNZ                                                    ~12, ->4
    9    18    >   ECHO                                                     !2
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.12 ms | 1399 KiB | 17 Q